When you install View Agent on an RDS host, the installer places sample load balancing scripts in the View Agent scripts directory (C:\Program Files\VMware\VMware View\Agent\scripts).

Table 1. Sample Load Balancing Scripts

Name

Description

cpuutilisation.vbs

Reads the percentage of CPU that has been utilized from the registry and returns the following load values:

  • 0, if CPU utilization is greater than 90 percent

  • 1, if CPU utilization is greater than 75 percent

  • 2, if CPU utlization is greater than 25 percent

  • 3, if CPU utilization is less or equal to 25 percent

memoryutilisation.vbs

Calculates the percentage of memory that has been utilized and returns the following load values:

  • 0, if memory utilization is greater than 90 percent

  • 1, if memory utilization is greater than 75 percent

  • 2, if memory utlization is greater than 25 percent

  • 3, if memory utilization is less or equal to 25 percent

Note:

Because the cpuutilisation.vbs script uses rolling average data that is sampled every five minutes, short-term high-utilization events might not be reflected in reported load preferences. You can reduce the sampling period to a minimum of two minutes, but performance might be affected on the RDS host. The sampling interval is controlled by the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VDM\Performance Stats\SamplingIntervalSeconds. The default is 300 seconds.