The script rhino.sh provides functionality to control and monitor the processes for the Rhino nodes on this host.

It does not connect to a Rhino management node to operate on the SLEE state (except for the stop command), nor does it affect nodes on other hosts.

For convenience of administration the script can discover the running set of nodes; however for more control, or if managing multiple clusters, the set of nodes can be configured in the environment. The environment variables used are:

RHINO_START_INTERVAL - How long to delay between starting each Rhino node.
                       It is helpful to stagger node startup because a
                       distributed lock is required during boot, and
                       acquisition of that lock may timeout if a very large
                       number of components are deployed.
RHINO_SLEE_NODES     - List of Rhino SLEE event router node IDs on this host.
                       If not specified, will discover nodes automatically.
RHINO_QUORUM_NODES   - List of Rhino quorum nodes IDs on this host.

The values of these variables can be specified, if necessary, in the file rhino.env.

Commands

The commands below control the state of the Rhino nodes.
They are run by executing rhino.sh <command> <arguments>, for example:

rhino.sh start -nodes 101,102

Command What it does
start

Starts a set of nodes that are not operational.

Use with no arguments to start all local nodes, or with the argument -nodes and a comma-separated list of nodes to start.

stop

Stops a set of nodes that are operational.

Use with no arguments to stop all local nodes or with the argument -nodes and a comma-separated list of nodes to stop.

This command connects to a management node in order to stop the SLEE on the affected nodes and send them the shutdown command.

kill

Kills a set of operational nodes using SIGTERM.

Use with no arguments to stop all local nodes or with the argument -nodes and a comma-separated list of nodes to kill.

restart

Kill a set of operational nodes using SIGTERM, and then start the same set of nodes.

Use with no arguments to stop all local nodes or with the argument -nodes and a comma-separated list of nodes to restart.

Previous page Next page
Rhino Version 2.6.0