
>cd node-101
>./start-rhino.sh -p
4.3.2 Starting a Node
Subsequent nodes can be started by executing the
$RHINO_NODE_HOME/start-rhino.sh
shell script.
During node startup, the following events occur:
• A Java Virtual Machine process is launched by the host.
• The node generates and reads its configuration.
• The node checks to see if it should become part of the primary component. If it was previously part of the primary
component, or the
-p
switch was specified on startup, it tries to join the primary component.
• The node waits to enter the primary component of the the cluster.
• The node connects to PostgreSQL and synchronises state with the rest of the cluster.
• The node starts per-machine MLets (Management Agents).
• The node becomes ready to receive management commands.
For more information regarding lifecycle management please refer to Section 5.9 in Chapter 5.
4.3.3 Starting a Quorum Node
A quorum node can be created by specifying the
-q
option to the
start-rhino.sh
shell script. Quorum nodes are lightweight
nodes which do not perform any event processing, nor do they participate in management level operations. They are intended
to be used strictly for determining which parts of the cluster remain in the primary component in the event of node failures.
>cd node-101
>./start-rhino.sh -q
For more information regarding clustering behaviour please refer to Chapter 17.
4.3.4 Automatic Node Restart
The
-k
flag can be used with
./start-rhino.sh
to automatically restart a node in the event of failure (such as a JVM crash).
This flag works by restarting the node 30 seconds after it exits unexpectedly. If the node was originally started with the
-p
or
-s
flags, it will be restarted without them to avoid changing the cluster state.
The -k flag works by checking for the existance of the
RHINO_HOME/work/halt_file
file, only restarting if it does not exist.
This file is written by Rhino if a node is manually shutdown or is killed with the
./stop-rhino.sh
script. It will also be
written if a node fails to start because it has been incorrectly configured.
4.3.5 Starting the SLEE
Once the primary component is created, the Rhino SLEE cluster is ready to enter the
RUNNING
state and begin to process work
(i.e. activities and events).
• Either connect using the Web Console or the Command Console and perform the start operation.
>cd $RHINO_HOME
>./client/bin/rhino-console start
Open Cloud Rhino 1.4.3 Administration Manual v1.1 18
Commentaires sur ces manuels