To configure the rhino-console to connect automatically to another node in the cluster if the current node fails, edit $CLIENT_HOME/etc/client.properties as follows (replacing hostN with the host names of your cluster and 1199 with the respective port numbers):

rhino.remote.serverlist=host1:1199,host2:1199

Now, if a node in the cluster fails, the command console will automatically connect to the next node in the list. The following example shows failover from node-101 to node-102:

Cluster state before failover

[Rhino@host1 (#2)] getclusterstate
node-id   active-alarms   host                    node-type      slee-state   start-time          up-time
--  --  --  --  --  --  ------------------
101               0                   host1   event-router      Running   20080430 18:02:35   0days,23h,16m,34s
102               0                   host2   event-router      Running   20080430 18:02:17   0days,23h,16m,16s
2 rows

Cluster state after failover

[Rhino@host2 (#2)] getclusterstate
node-id   active-alarms   host                    node-type      slee-state   start-time          up-time
--  --  --  --  --  --  ------------------
102               0                   host2   event-router      Running   20080430 18:02:17   0days,23h,16m,26s
1 rows
Warning Command-console failover is only available for the Production version of Rhino.
Previous page Next page
Rhino Version 3.2