Accessibility

ColdFusion Article

 

Managing Clusters with Enterprise Manager and Packaging Applications in ColdFusion MX 7


Table of Contents

Configuring Multiple ColdFusion Instances

The term, multiple instances (sometime called multiple servers), refers to the ability of J2EE servers to deploy multiple copies of an application server to a single computer. Technically, you deploy one new JVM (Java Virtual Machine) per server instance. The benefit is simply that each new application server has its own process to use; when one server fails, the failing server won’t affect other processes. This is called process isolation. In ColdFusion MX 6.1 Enterprise edition, you could configure multiple ColdFusion servers, though it was a highly manual process and required that you use the Java Management Console (JMC) and understand J2EE. With ColdFusion MX 7, you can create multiple ColdFusion servers on a single computer through the ColdFusion Administrator, with no manual steps. Each new ColdFusion server instance has its own ColdFusion Administrator. In short, each server has its own separate configuration, as if it were a ColdFusion server running on another physical computer. It is possible to configure a cluster comprised of servers that reside on a single computer too.

Creating multiple instances is easy. Use the following steps.

  1. Ensure that you have installed ColdFusion MX 7 using the multiserver configuration.
  2. Open the ColdFusion MX Administrator for the cfusion server in a browser (with a default installation, this is located at: http://hostname:8300/CFIDE/administrator).
  3. Select Enterprise Manager > Instance Manager.

    Creating a new instance in the Instance Manager

    Figure 2. Creating a new instance in the Instance Manager

  4. Click Add New Instance.
  5. Specify the following in the Add New ColdFusion Server area:

    • Server name
    • (Optional) Directory that contains the server instance. The ColdFusion MX Administrator fills in the default automatically (jrun_root/servers/servername).
    • (Optional) Create from EAR/WAR. If you use the J2EE Packaging feature to create a J2EE archive file with your application's files (including CFM, CFC, and CFR files) and data sources, use this field to specify the EAR or WAR filename and create a server instance with your application deployed automatically.
    • (Optional, Windows only) Specify whether to create a Windows service for the server instance and whether to define the Windows service with an auto restart recovery option.
  6. Click Submit.

    The ColdFusion MX Administrator creates a server instance with ColdFusion MX deployed in it and starts the server instance. The ColdFusion MX application that it deploys is based on the application archive file specified in the Create from EAR/WAR field or on the cfusion server instance (if you don't specify an EAR or WAR file).

    Creating a JRun server instance and deploying the ColdFusion MX application can take a few minutes.

  7. Click Return to Instance Manager.