
119
L
ast
u
p
dated
7/9/2
01
2
Chapter 8: Using Multiple Server Instances
Instead of JRun, Tomcat is embedded with a stand-alone ColdFusion 10 installation. Previous versions of ColdFusion
installer allow you to create multi-server installations whereas ColdFusion 10 installer lets you only install stand-alone
installation. After installing ColdFusion in stand-alone mode, you can create multiple instances and clusters, provided
you have an Enterprise or Developer license.
About multiple server instances
The ColdFusion Administrator lets you create server instances and clusters. Additionally, you can connect to remote
Tomcat servers and add them to clusters.
Running multiple instances of ColdFusion has the following advantages:
Application isolation
You deploy an independent application to each server instance. Each server instance has
separate settings and, because each server instance runs in its own Java Virtual Machine (JVM), problems that one
application encounter have no effect on other applications.
Clustering (load balancing and failover)
You deploy the same application to each server instance and add the instances
to a cluster. The web server connector optimizes performance and stability by automatically balancing load and by
switching requests to another server instance when a server instance stops running.
File location considerations
ColdFusion lets you store CFM pages either under the external web server root or under the ColdFusion web
application root. The discussions here assume that you store your CFM pages under the ColdFusion web application
root and specify a context root for your application.
If you use the web server connector to access pages under the ColdFusion web application root and your ColdFusion
web application has an empty context root (this is the default), the connector does not automatically serve static
content, such as HTML pages and image files. If so, define web server mappings so that it can serve files from the
ColdFusion web application root.
For more information on serving CFM pages from the web server root, see “
Web Server Management
” on page 95
Defining additional server instances
You can create multiple ColdFusion instances using ColdFusion administrator.
Define a server instance
After installing ColdFusion in standalone mode, create an instance of ColdFusion using the ColdFusion
Administrator.
1
In the ColdFusion Administrator, go to Enterprise Manager > Instance Manager.
2
Click Add New Instance.
3
Enter the server name and server directory.