Changes between Version 5 and Version 6 of flukes

Show
Ignore:
Timestamp:
10/24/11 16:38:42 (7 years ago)
Author:
pruth (IP: 152.54.9.28)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • flukes

    v5 v6  
    2121For added functionality, ORCA uses [http://velocity.apache.org/engine/releases/velocity-1.5/index.html velocity templates] to create the scripts.   See the [http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html user's guide] for details about Velocity.     
    2222 
    23 ORCA templates follow the Velocity syntax which can be used to replace several key pieces of data that are assigned by ORCA.     Specifically, there is are one or more arrays that contains the IP addresses assigned to each instance.   For each group there is an array of IP addresses referenced using the name provided to Flukes for the group.  In addition, there is a variable called $MY_ADDR_INDEX that is the index of the IP address of the current instance within its group's array of IP addresses.  All arrays of IP addresses are accessible from any post boot script in the current request. 
     23ORCA templates follow the Velocity syntax which can be used to replace several key pieces of data that are assigned by ORCA.     Specifically, there are one or more arrays that contains the IP addresses assigned to each instance.   There is one array of IP addresses for each group.  Each array of IP addresses is referenced using the name provided to Flukes for the group.  In addition, there is a variable called $MY_ADDR_INDEX that is the index of the IP address of the current instance within its group's array of IP addresses.  All arrays of IP addresses are accessible from any post boot script in the current request. 
    2424 
    2525The following is an example post boot script that adds an entry to the /etc/hosts file for each of the instances in the request and sets the hostname of each instance to an appropriate value.  In this particular example, the first instance is assumed to be a master node named "master" while the remaining nodes are named worker1, worker2, ... The string "Group1" was used as the group name.