locked
關於Server 2008 R2 NLB篩選模式-->多重主機,親和性:無的一些問題 RRS feed

  • 問題

  • 各位先進大家好

    我想請問關於Windows Server 2008 R2 NLB篩選模式>多重主機,親和性:無這個設定下的一些問題,

    情況是這樣的,我有兩個網站,

    當我設定NLB後,確實做到網路分流,

    但我發現僅有分流效果,沒有容錯效果,

    我故意將其中一台Server的網站停止服務,但是前端使用者還是有一半會連

    到已經停止服務的Web的主機,並非通通被導向還存活的Web站台,

    我想請問,選擇親和性無這種設定模式,是不是注定只能做網路分流,而無法容錯,

    如果預設是這樣,可以給我一些偵測應用程是失敗的經驗分享嗎

    2011年6月17日 下午 02:19

解答

  • Hi, 跟據 Microsoft 在 Technet 的文件所說 http://technet.microsoft.com/en-us/library/cc739690(WS.10).aspx

    Q. How Does NLB Detect a Server Failure?

    A. While servicing client requests, each NLB Cluster host emits heartbeats to the other hosts in the cluster. If a host fails and stops emitting heartbeats, then after a default time period of five seconds, the remaining hosts in the cluster undergo a process called convergence to remove the failed host from the cluster and have new client connection requests mapped to remaining hosts in the cluster. So, new connections made by the client get handled by one of the remaining hosts in the cluster.

    另一文獻: http://technet.microsoft.com/en-us/library/cc738464(WS.10).aspx

    所以一個 Node 停了,client 不會再被導向那一個停了的 node.

    你要測試的話,應該試試直接拔除網線去試,而不是停了 IIS. 跟據 http://support.microsoft.com/kb/556067 所說,
    NLB doesn't detect application failure. For example, a Web Server service may stop but NLB will still send TCP/IP requests to that server.

    所以只停了 IIS 的 service,NLB 是不能偵測的。

     


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 joeyman 2011年6月17日 下午 10:07
    2011年6月17日 下午 05:14

所有回覆

  • Hi, 跟據 Microsoft 在 Technet 的文件所說 http://technet.microsoft.com/en-us/library/cc739690(WS.10).aspx

    Q. How Does NLB Detect a Server Failure?

    A. While servicing client requests, each NLB Cluster host emits heartbeats to the other hosts in the cluster. If a host fails and stops emitting heartbeats, then after a default time period of five seconds, the remaining hosts in the cluster undergo a process called convergence to remove the failed host from the cluster and have new client connection requests mapped to remaining hosts in the cluster. So, new connections made by the client get handled by one of the remaining hosts in the cluster.

    另一文獻: http://technet.microsoft.com/en-us/library/cc738464(WS.10).aspx

    所以一個 Node 停了,client 不會再被導向那一個停了的 node.

    你要測試的話,應該試試直接拔除網線去試,而不是停了 IIS. 跟據 http://support.microsoft.com/kb/556067 所說,
    NLB doesn't detect application failure. For example, a Web Server service may stop but NLB will still send TCP/IP requests to that server.

    所以只停了 IIS 的 service,NLB 是不能偵測的。

     


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 joeyman 2011年6月17日 下午 10:07
    2011年6月17日 下午 05:14
  • Hi, 跟據 Microsoft 在 Technet 的文件所說 http://technet.microsoft.com/en-us/library/cc739690(WS.10).aspx

    Q. How Does NLB Detect a Server Failure?

    A. While servicing client requests, each NLB Cluster host emits heartbeats to the other hosts in the cluster. If a host fails and stops emitting heartbeats, then after a default time period of five seconds, the remaining hosts in the cluster undergo a process called convergence to remove the failed host from the cluster and have new client connection requests mapped to remaining hosts in the cluster. So, new connections made by the client get handled by one of the remaining hosts in the cluster.

    另一文獻: http://technet.microsoft.com/en-us/library/cc738464(WS.10).aspx

    所以一個 Node 停了,client 不會再被導向那一個停了的 node.

    你要測試的話,應該試試直接拔除網線去試,而不是停了 IIS. 跟據 http://support.microsoft.com/kb/556067 所說,
    NLB doesn't detect application failure. For example, a Web Server service may stop but NLB will still send TCP/IP requests to that server.

    所以只停了 IIS 的 service,NLB 是不能偵測的。

     


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu


    謝謝RichardWu回答我的疑問,

    我想再請教各位先進,

    畢竟在實務應用上,除非是Web APPlication要進行程式升級而暫時將Node移出NLB叢集

    否則主機網路Crash的機率很小,最常見的情況通常都是Web Application承受不了壓力Crash

    大家平時是怎麼偵測Web Application Crash呢

    2011年6月17日 下午 10:13