NLB drainstop指令完成後狀態一直處於draining狀態

問題

NLB叢集中使用drainstop指令排除其中一個NLB node,該台主機的狀態一直處於draining狀態

clip_image002

原因

Drainstop: A tool that disables all new traffic handling on the specified hosts. The hosts then enter the draining mode to complete existing connections. While draining, hosts remain in the cluster and stop their cluster operations when there are no more active connections. You can terminate draining mode by explicitly stopping the cluster mode with the stop command or by restarting new traffic handling with the start command. To drain connections from a specific port, use the drain command.

解決

根據例子使用者使用IIS 服務,並且使用指令NETSTAT -ano確認還有大量連線還未完成

TCP 172.22.250.3:443 172.22.0.26:1229 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.0.26:1230 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.3.33:2947 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.3.33:2950 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.3.33:2956 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.3.33:2958 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.16.41:4055 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.16.41:4056 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.17.121:1185 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.17.121:1188 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.18.69:3960 ESTABLISHED 4

TCP 172.22.250.3:443 172.22.18.69:3961 ESTABLISHED 4

經嘗試將IIS Reset後已處於正常狀態

參考

Using the "WLBS QUERY" Command to Determine the State of an WLBS/NLB Cluster

https://support.microsoft.com/kb/242242/en-us