Access Cluster Services

Once your cluster is successfully provisioned, a systemctl service called coherence@default-cluster.service is created on each node. Administer your Coherence cluster on Oracle Cloud Infrastructure by using the systemctl commands on the coherence@default-cluster.service.

Note:

To change cluster configuration properties such as, the log level, you must modify the default-cluster.env file located in the /opt/usr/local/etc/ directory. For the changes to take effect, ensure that you restart the cluster instance after modifying the default-cluster.env file.

Using the SSH utility, log into your cluster instance as the opc user and issue the following commands to administer your cluster services:

Add a New Cluster Instance on a Node

You can add one or more cluster instances on each node. To add a new Coherence cluster instance on a node:
  1. Using SSH, log in to your node as the opc user. Then, switch to the oracle user by running the sudo su - oracle command.
  2. Open the /opt/usr/local/etc/ directory of your current node.
  3. Save a copy of the default-cluster.env file with a new name, new-cluster.env.
  4. Edit the new new-cluster.env file and change the value of the CLUSTER_NAME parameter to new-cluster.
  5. Change any other parameter as required.
  6. Exit sudo su - oracle and switch back to the opc user.
  7. Create the cluster instance by running the sudo systemctl enable coherence@new-cluster.service command.
  8. Start the new cluster instance by running the sudo systemctl start coherence@new-cluster.service command.