
Deploying Equalizer with MS Terminal Services
Deployment Guide
© 2010 Coyote Point Systems, Inc. All Rights Reserved. | www.coyotepoint.com 18
the “.pl” file extension is associated with the perl executable that you install
(this is done automatically by the ActivePerl install scripts).
The text of the server agent perl script is given in Appendix A: Terminal
Services Server Agent. Lines 33 through 46 of the script determine the number
to return to Equalizer using this process:
1) The output of the qwinst command is parsed (using find) for the string
“Listen” – this indicates that there is at least one process on the system
listening for terminal services connections.
2) If “Listen” is not found, then no terminal services process is listening for
connections and we set the agent response to “-1”, indicating that the
service is down. The server will be marked down on Equalizer.
3) If “Listen” is found, the agent does a rough load calculation to return to the
server. In the example script, we assume that the max connections setting
of the server on Equalizer and in MSTS is 50 sessions, so there may be from
0 to 50 sessions active at any time. The script counts the number of Active
sessions, multiplies the result by two and adds 1. This results in a number
between 1 and 101, so there is a check to make sure the response sent is
between 1 and 100 (the supported server agent return values on Equalizer).
This approximation of the server load is returned to Equalizer and used by
Equalizer’s load balancing algorithms.
To install and run the server agent on your MSTS servers, do the following on
each server:
1. Copy and paste the server agent perl code from Appendix A into a file named
srvrgnt-msts.pl on the MSTS server.
2. Open the Server Manager utility, and navigate to Configuration > Task Scheduler.
Use the Task Scheduler to schedule the script to run as follows:
• run the script every time the system starts
• if the task fails to run, restart it every five minutes
• allow the task to be started manually
The Task Scheduler is a bit different depending on which Windows Server version
you are using, so check the documentation on your system for complete
instructions.
3. In the Task Scheduler window, right click on the new task and click Run to start
the task manually. A window will open showing the startup output of the command
“Server agent started on port 1510”. Do not close this window or the agent will
stop running. The script output will also show when Equalizer connects to the
agent, after the next step is performed.
Step 11: Configure the Equalizer cluster for the server agent
1. In the left pane of the Equalizer Administrative Interface, click on the Equalizer’s
system name (default: Equalizer).
Comentarios a estos manuales