System information

91
CONFIGURING AND ADMINISTERING COLDFUSION 9
Using Multiple Server Instances
Last updated 2/21/2012
<cfset check = session.datasourcecomponent.verifyDSN("testdsn")>
18 For servers that are not on the same subnet, open the jrun_root/lib/security.properties file and add the IP addresses
of the other JRun servers in the cluster to the
jrun.trusted.hosts property.
Note: This step is required only for servers that are not on the same subnet; it is not necessary if all servers are on the
same subnet.
19 Restart all JRun servers in the cluster.
20 Run the Web Server Configuration Tool. Choose your website, but instead of choosing a single server instance,
select the cluster. Ensure that you select the Configure Web Server for ColdFusion MX Applications option (GUI)
or use the -
coldfusion option (command line). For more information, see Web server configuration” on page 61.
21 Open the SERVER-INF/jrun.xml file for each server instance and ensure that the ProxyService deactivated
attribute is set to
false.
22 (Optional) Store the ColdFusion files of your application in the external web server root directory.
23 Test the application to ensure that load balancing and failover work as expected.
Define remote server instances to the ColdFusion
Administrator
You can use the Cluster Manager to add ColdFusion server instances running on other computers. However, first define
them to the ColdFusion Administrator through the Add Remote Server Instance area of the Instance Manager page.
Note: To define a remote server instance, it must be running. You cannot start or stop servers remotely.
1 Open the ColdFusion Administrator for the cfusion server in a browser
(http://hostname:8300/CFIDE/administrator).
2 Select Enterprise Manager > Instance Manager.
3 Specify the following in the Add Remote ColdFusion Instance area:
Server name
The IP address or DNS name of the remote host.
The remote port of the remote server. To determine the remote port, open the
jrun_root/servers/servername/SERVER-INF/jndi.properties file and note the port number in the
java.naming.provider.url property.
4 Click Add Remote ColdFusion Server.