• RSS
  • Twitter
  • FaceBook

Draining user sessions on RDS with NLB

  • Section(s): High Availability
  • Published on Jan 30, 2012.
  • Last Modified on Nov 17, 2011.
  • Last Modified by Freek Berson.
  • Rated 3 out of 5 based on 1 votes.
Draining user sessions on RDS with NLB

In Remote Desktop environments where high availability and continuity is important multiple Remote Desktop Session Host Servers will most likely be combined in a server farm. Using a RDS farm users will connect to a farm address and will be load balanced across the RD Session Host servers in the farm. A way of load balancing these sessions could be Microsoft’s Network Load Balancing (NLB). If you ever have to do maintenance on one of the RD Session Host Servers that is currently in production you can use a feature on the RD Session Host that is called drain mode. If a RD Session Host server is running in drain mode existing sessions will continue to run, but new sessions to the server will be denied. The server will eventually run out of sessions and will be available for maintenance. So far, so good.

However, if you use NLB (or any other load balancing software or hardware) that loadbalancing part will in most cases not pick up the fact that an RD Session Host server is in drain mode and will continue to route new sessions to it. As a result, users who are redirected to this server in drain mode will get an error that they can’t connect. Furthermore, as more users will log off from the server in drain mode, more and more users will be send to that server since it is the server with the least load.

Overcoming this issue is rather easy, inside NLB you have the option to set the RD Session Host in drain mode as well. Therefore, with the combination (drain mode on the RD Session Host and drain mode on NLB) you are full proof and can take a RD Session Host out of production without end users receiving connection errors.

About Freek Berson


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly VirtualizationAdmin.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a VirtualizationAdmin.com member!

Discuss all your Virtualization issues with other experts. Click here to join!

Readers' Choice

Which is your preferred Application Server solution?