Setting Up an Active/Passive Cluster

After meeting all prerequisites, you can set up an Active/Passive cluster.

Perform the following steps:

1.Log into the CLI on the appliance that you want to be the Active node.

2.Set the appliance as the current Active node, type the following command:

cluster promote

Example output for this command is shown below:

Promoting node to active cluster node...

Stopping uno_mongo_1 ... done

Removing uno_mongo_1 ... done

Stopping uno_log_collector_1 ... done

Removing uno_log_collector_1 ... done

node:

id: af714515364b402b84cae007b183dd24

ip: 192.168.56.101

mode: active

In this example, the node is confirmed as Active.

3.To begin the process of adding a Passive node to form a cluster, run the following command from the Active node:

cluster add <Internal IP of intended Passive Node>

The output for this command includes a command that you must run on the Passive node. This command includes a cluster join token. For example:

To cluster 192.168.56.102 as a Passive Pulse One appliance with an Active appliance, you must configure networking on the passive appliance and run the following command on it:

cluster join 192.168.56.101 nv13rvdv

In this example, the cluster join token is “nv13rvdv”.

The cluster join token is valid until the token is regenerated by issuing another cluster add command.

4.Copy the resulting command from the output of the cluster add command.

5.Log into the CLI on the appliance that you want to be the Passive node.

6.Paste the command that was copied in step 4 and press Enter. For example:

cluster join 192.168.56.101 nv13rvdv

Example output for this command is shown below:

WARNING: This will delete all Pulse One data, resetting the appliance to factory defaults.

The data will not be recoverable.

Type DESTROY to continue:

7.Type DESTROY and press Enter. Example output is shown below:

Type DESTROY to continue: DESTROY

Resetting data…

Removing directory /data/lost+found

Destroyed.

Joining cluster 192.168.56.101 as a passive node…

8.On the Passive node, verify the cluster status of the node:

cluster status

Example output for this command is shown below:

cluster:

active_node: 10.64.45.177

nodes:

- 10.64.45.177

- 10.64.45.175

node:

id: 2dc3c050e9af4b8d85ad32fffc75f2fc

ip: 10.64.45.175

mode: passive

For Pulse One appliance in clustered mode, if its peer is not accessible, the cluster status command will not return any result.

9.On the Active node, verify the cluster status of the node:

cluster status

Example output for this command is shown below:

cluster:

active_node: 10.64.45.177

nodes:

- 10.64.45.177

- 10.64.45.175

node:

id: af714515364b402b84cae007b183dd24

ip: 10.64.45.177

mode: active

10.Restart the services on both nodes:

services restart

11.Perform a reboot on both nodes:

system reboot

12.To enable automatic failover, set a failover timeout on the Active node. For example:

cluster config -f 2

Example output for this command is shown below:

auto_failover: true

auto_failover_timeout: 2 minutes

This concludes the setup of the Active/Passive cluster.