Previous PageNext Page

3.2.7 Multi-Machine Chili!Soft ASP

In certain cases, you may wish to locate your Web server and Chili!Soft ASP on separate physical machines. Or perhaps, you may wish to locate one or more Web servers on one set of machines, with a set of Chili!Soft ASP servers on another set of machines. Configurations like this are called multi-machine Chili!Soft ASP. You have two configuration options for multi-machine ASP:
 

Note:

Threading Model is not available when you are running Chili!Soft ASP in a multi-machine configuration. You must run Chili!Soft ASP in multi-process mode.

Note:

Threading Model is not available when you are running Chili!Soft ASP in a multi-machine configuration. You must run Chili!Soft ASP in multi-process mode.

3.2.7.1 Separate Installations

The easiest way to set up multi-machine Chili!Soft ASP is to use the Chili!Soft ASP installation script to install Chili!Soft ASP to each machine in the configuration, and then modify the appropriate configuration files. Follow the steps below:
 
  1. Use the caspi installation script (described in Chapter 2: Installation) to install Chili!Soft ASP to your Web server machine (even if you do not plan to run the Chili!Soft ASP engine on this machine.)
     

  2.  
  3. When prompted by the installation script, choose the Advanced installation option.

  4.  
  5. Later in the installation, you will be asked to choose a port number and Chili!Soft ASP configuration files directory. Write down the port number and Chili!Soft ASP configuration directory you choose.

  6.  
  7. When prompted, choose the Web server installation option for the Web server you are using.

  8.  
  9. Complete the rest of the installation process normally.

  10.  
  11. Repeat Steps 1-5 on each Web server machine in the configuration, taking care to use the same port number and directory options each time that you specified originally in Step 3.

  12.  
  13. Next, use the caspi installation script to install Chili!Soft ASP to the dedicated Chili!Soft ASP machines (i.e. the machines not running a Web server).

  14.  
  15. When prompted by the installation script, again choose the Advanced installation option.

  16.  
  17. When asked to specify a port number and Chili!Soft ASP configuration directory, again use the values you specified in Step 3 above.

  18.  
  19. When prompted to choose a Web server, select the Advanced option for the Chili!Soft ASP engine only.

  20.  
  21. Complete the rest of the installation normally.

  22.  
  23. Repeat steps 7-11 for each machine on which you plan to run the Chili!Soft ASP engine.

  24.  
  25. Configuring Chili!Soft ASP to run in a multi-machine environment involves making edits to the casp.cnfg file. This file is located in the Chili!Soft ASP configuration files directory you specified in Step 3 above. On one of the machines participating in the configuration (either a Web server machine or Chili!Soft ASP machine), open the casp.cnfg file with a text editor. Change the count attribute in the [machines] section to match the number of Chili!Soft ASP machines, and add the IP address of each machine hosting the Chili!Soft ASP engine. A sample [machines] section appears below.
  26. [machines]

    machine1=200.150.100.1

    machine2=200.150.100.2

    machine3=200.150.100.3

    machine4=200.150.100.4

    portnumber=3456

    logfile=/opt/casp/asp-apache-3456

    mtengine=0

    disablerestart=0


     
  27. From the same machine as in Step 13, setup the odbc.ini file. For any database DSNs that you want to be accessible from all of the Chili!Soft ASP engines, you will need to add entries to odbc.ini. This file is located in the Chili!Soft ASP configuration files directory you specified in Step 3 above. Follow the instructions in the ODBC Configuration for UNIX section to add database DSNs.

  28.  
  29. After completing your edits to the casp.cnfg and odbc.ini files, you must copy them to each machine in the configuration. Each machine (either hosting the Web server or hosting Chili!Soft ASP) must have identical copies of the casp.cnfg and odbc.ini files.
Now that you have Chili!Soft ASP configured to run in a multi-machine mode, you are ready to start the engines. See the Running Multi-Machine section for further details.
 

3.2.7.2 Shared Installation

For all machines participating in the multi-machine Chili!Soft ASP configuration (Web server machines and Chili!Soft ASP machines), each installation must have identical casp.cnfg and odbc.ini files. As an alternative to installing Chili!Soft ASP to every machine and manually synching these files, if you are using a shared file system, you may install Chili!Soft ASP once to a location that may be shared to all machines participating in the installation. Modifications you make to casp.cnfg and odbc.ini will be picked up by all the Chili!Soft ASP machines in the installation. However, several key system files must be relocated to a local file system on each machine for this configuration. The steps below describe setting up multi-machine Chili!Soft ASP using a shared installation.
 
  1. From the machine that has your Web server installed, run the caspi installation script.
     

  2.  
  3. When prompted to choose where you would like to install Chili!Soft ASP, (the default is /opt/casp), choose a file system location that can be shared (for example, /pub/opt/casp).

  4.  
  5. Complete the rest of the installation normally.

  6.  
  7. Configuring Chili!Soft ASP to run in a multi-machine environment involves making edits to the casp.cnfg file. This file is located in an asp-<server>-<port> directory underneath the installation directory you chose in step 2 above. Open the casp.cnfg file with a text editor. Change the count attribute in the [machines] section to match the number of Chili!Soft ASP machines, and add the IP address of each machine hosting the Chili!Soft ASP engine. A sample [machines] section appears below.
  8. [machines]

    count=4

    machine1=200.150.100.1

    machine2=200.150.100.2

    machine3=200.150.100.3

    machine4=200.150.100.4


     
  9. Certain Chili!Soft ASP system files cannot be shared by multiple running Chili!Soft ASP engines, and must be relocated to non-shared files on each machine's local file system. See the System File Relocation section for further details.
Now that you have Chili!Soft ASP configured to run in a multi-machine mode, you are ready to start the engines. See the Running Multi-Machine section for further details.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page