|
Because of the nature of a clustered environment, ColdFusion variables that are stored in memory or the registry, such as application, session, and server variables, are not sustained by default when a user is balanced, or shifted from one server in a cluster to another in order to balance server load. For example, using server variables in a clustered server environment won't work, since server variables are not carried from one server in a cluster to another when users are shifted to another server. State cannot be maintained correctly. Client variables, however, can be sustained because they can be stored in an external repository. If you are planning to migrate a ColdFusion application that uses session and server variables to a clustered server environment, you need to consider how to deal with this issue.
|
|
|
- Make sure session variables have been enabled in the ColdFusion Administrator, Variables page.
- Open the ClusterCATS for ColdFusion Explorer.
- Right click the cluster in which you want to enable session aware load balancing, and select Configure > Administration. The properties dialog for the selected cluster appears.
- At the bottom of the dialog, click to enable the Enable session aware load balancing option.
Once enabled, ClusterCATS maintains session state by ensuring the current session remains connected to the server on which state was set. After being balanced on initial connection, the user will not be shifted or balanced to another server in the cluster during the session.
|
|