Changes between Version 5 and Version 6 of bestPractices

Show
Ignore:
Timestamp:
06/30/10 13:47:43 (9 years ago)
Author:
ibaldin (IP: 152.54.9.21)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bestPractices

    v5 v6  
    1717== Preparation == 
    1818 
     19=== Preparing the infrastructure === 
     20 
    1921  1. You must decide and document the topology of the ORCA actors in the future deployment - how many Tomcat containers you will have, which hosts they will be located on and which actors will be deployed in which container.  
    2022  1. Setup tomcat on each of the hosts. The canonical way, in which RENCI sets up ORCA is to have $ORCA_HOME=/opt/orca on each of the deployment hosts. ORCA-modified tomcat is installed under $ORCA_HOME/tomcat and $ORCA_HOME/tomcat/start.sh and $ORCA_HOME/tomcat/stop.sh scripts are modified to reflect the $ORCA_HOME setting by prepending them with  
     
    2224export ORCA_HOME=/opt/orca 
    2325}}} 
     26  1. MySQL database on each of the hosts must be [wiki:databaseSetup initialized] with the schema and initial data. Loading inventory files is optional. 
     27  1. Verify that tomcat starts and stops properly without ORCA 
    2428 
    25 MySQL database on each of the hosts must be [wiki:databaseSetup initialized] with the schema and initial data. Loading inventory files is optional. 
     29=== Preparing the configuration === 
    2630 
    27 $ORCA_HOME should also contain  
     31  1. Build ORCA as usual 
     32{{{ 
     33$ cd $ORCA_SRC 
     34$ mvn install 
     35}}} 
     36  1. Prepare the directory structure with configuration files on the build host. Basically for each host with a container you should have a separate copy of $ORCA_SRC/webapp (or $ORCA_SRC/webapp2, if present). One way to do this: 
     37{{{ 
     38$ cd $HOME 
     39$ mkdir host1 host2 host3 
     40$ cd $ORCA_SRC/webapp2 
     41$ tar -cf - . | tar -xf - -C $HOME/host1 
     42$ tar -cf - . | tar -xf - -C $HOME/host2 
     43$ tar -cf - . | tar -xf - -C $HOME/host3 
     44}}} 
     45 
     46  1. $ORCA_HOME should also contain  
    2847 
    2948The deployment can use a single source tree located on the machine, where you build ORCA, which has Java, Ant and Maven. The hosts with Tomcat containers should have the same version of Java as is used on the build machine.