Monday 29 October 2012

Installing Windows 2008R2 Remote Desktop Connection Broker to balance load over two Remote Desktop Servers

We have one vm server running a Remote Desktop server and because of the amount of memory the vm is now using we need to divide up the load so we can balance over two vms and place them on two different esx hosts

Now we only wanted to use Remote Desktop connections, and we are not using RemoteApp or RemoteWeb (alot of instructions on the web have these steps as well)

1) First install the Remote Desktop Connection Broker
The Remote Desktop Connection Broker tells each incoming request to go to the server with the less load or to only the on line RD servers - if this service goes down then all requests will go onto one server and wont balance.  It would pay to have the broker on a separate server and not on the RD servers so you can restart the RD servers without interrupting the incoming requests.

  • Go to Roles and and install Remote Desktop Services Role
  • Then you need to install the Remote Desktop Connection Broker


2) Add the remote desktop servers into new local group
A new local group gets created called "Session Broker Computers"
Simply select type of computers and add the remote desktop server names
 


3) Set up DNS
You need to setup new A host records in your DNS for your new "farm" name
Farm1      192.168.0.1
Farm1      192.168.0.2

4) Set the remote desktop server to use the new remote desktop connection broker
Under the Remote Desktop Host Session configuration screen - right click the "Member of farm in RD connection Broker" and go proprieties

5) Click the button "Change Settings"
6) Click on Farm member, Click the RD Connection Broker server name, type the farm name used when setting up the DNS

7) Click "Partcipate in Connection broker load-balancing", Click the Ip address of your LAN


 
The next time someone logs in - it will go to the server with the lowest logins (it doesnt balance cpu or memory used)