Administration

Table Of Contents
7 Right-click the entry for the new string value you created and select Modify.
8 In the Value data text box, type the command line that invokes your load balancing script and click
OK.
Type the full path to your load balancing script.
For example: cscript.exe "C:\Program Files\VMware\VMware View
Agent\scripts\cpuutilisation.vbs"
9 Restart the VMware Horizon View Agent service on the RDS host to make your changes take effect.
Your load balancing script begins to run on the RDS host.
What to do next
Repeat this procedure on each RDS host in the farm.
Verify that your load balancing script is working correctly. See “Verify a Load Balancing Script,” on
page 168.
Verify a Load Balancing Script
You can verify that your load balancing script is working correctly by viewing RDS farm and RDS host
information in View Administrator.
Procedure
1 In View Administrator, click Dashboard and expand RDS Farms in the System Health pane.
2 View the health of the farm that contains the RDS hosts.
The health of the farm should be green. If a load balancing script is configured on only some of the RDS
hosts in a farm, View Administrator sets the health of the farm to yellow. You must configure the load
balancing script on all of the RDS hosts in a farm or on none of the RDS hosts in a farm.
3 Expand the farm and click the name of each RDS host to view its load preference.
The Server load field in the details dialog box shows the load preference reported by View Agent, for
example, Light load, new sessions okay. If View Agent did not report a load preference, the Server
load field shows Load not reported.
What to do next
If load balancing is not working as you expected, verify the content of your load balancing script. If the
script is written correctly, verify that the VMware Horizon View Script Host service is running and that the
same load balancing script is configured on each RDS host in the farm.
Load Balancing Session Placement Examples
These examples illustrate two load balancing session placement scenarios.
Example 1: No Existing User Session
This example illustrates how session placement might occur for a farm that contains six RDS hosts when a
user session does not currently exist on any of the RDS hosts.
1 View Agent reports the following load preferences for each RDS host in the farm.
RDS Host Load Preference
1 HIGH
2 LOW
View Administration
168 VMware, Inc.