Keeping Users Connected with Session Directory


Windows 2003 now addresses this problem with Session Directory. Session Directory is a database that keeps track of sessions on terminal servers in a cluster and provides the information used at connection time to connect users to existing sessions. With session directory when a connection attempt is made to the cluster, the server that receives the request first checks with the session directory server to see if the user has an existing connection on another server.

If so the session directory informs the server of this and it directs the client to the appropriate server that contains the existing session. If the user does not have an existing session, then the session is launched from the server that received the initial request. In both cases after the connection is established the session directory is then updated. Session Directory is not enabled by default. You must perform the following steps to set up Session Directory properly:

  1. A server must be identified as the session directory server. Any server in the domain will work. It is not required to even be running Terminal Services.

  2. After you have chosen what server you want to be the session directory server, you must go into the services control panel and start the terminal server session directory service. It is highly recommended you also set this service to Automatic so that it will start after a server reboot.

  3. After this has been done, open the Terminal Services Configuration MMC snap-in, go to server settings, and right-click session directory.

  4. Here you would check Join Session Directory, and then identify the Session Directory Server by entering the name of the server that has been configured to run the service. See Figure 20.1.

    Figure 20.1. Join Session Directory server.

    graphics/20fig01.jpg

    How you configure setting pertaining to Terminal Server IP Address Redirection depends on the load-balancing solution you use and how it is implemented.

  5. If the load-balancing solution allows for the clients to attach directly the terminal server's IP address you should leave the IP address redirection box checked and select the proper network interface and IP address.

  6. If the load-balancing solution does not allow for direct connection to the terminal server IP address and instead requires the client to attach to the virtual address to direct the request to the proper terminal server, terminal server clients and the load-balancing hardware must both support the use of routing tokens. This requires configuration and software support in the load-balancing device specifically for terminal servers and routing tokens. Uncheck the IP address redirection box and follow the documentation provided by your load balancing solution.

Terminal Servers Requirements

Terminal servers are required to be running Windows Server 2003, Enterprise Edition, or Windows Server 2003, Datacenter Edition, to participate in a Session Directoryenabled farm.


After completing these steps all servers will become members of the cluster and use the session directory. Note this can also be accomplished via a GPO and that would be a more efficient method of configuration as opposed to configuring each terminal server individually.

Although Session Directory does improve things over Windows 2000 Terminal Services it still might not provide the flexibility and effectiveness you want. So in most cases after an environment has outgrown the ability to use machine-based load balancing the company will turn to a third-party software provider like a Citrix, New Moon Systems, or Jetro Platforms to provide application-based load balancing. All of these products will allow for load balancing to be performed at the application level. This allows for dissimilar servers in the farm and the ability to take advantage of dissimilar hardware. Using one of these third-party tools you can configure the system to ensure the client always connects to a server capable of running the specified application with the most resources available at that particular point in time.



Microsoft Windows Server 2003 Insider Solutions
Microsoft Windows Server 2003 Insider Solutions
ISBN: 0672326094
EAN: 2147483647
Year: 2003
Pages: 325

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net