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 thedefault-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:
| Command | Description |
sudo systemctl status
coherence@default-cluster.service |
Returns the status of the cluster instance |
sudo journalctl -u
coherence@default-cluster.service |
View logs from your cluster instance
To follow the logs, add the |
sudo systemctl stop
coherence@default-cluster.service |
Stops the cluster instance |
sudo systemctl start
coherence@default-cluster.service |
Starts the cluster instance |
sudo systemctl disable
coherence@default-cluster.service |
Disables the Coherence cluster instance |
sudo systemctl enable
coherence@default-cluster.service |
Enables the Coherence cluster instance |
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:
- Using SSH, log in to your node as the
opcuser. Then, switch to theoracleuser by running thesudo su - oraclecommand. - Open the
/opt/usr/local/etc/directory of your current node. - Save a copy of the
default-cluster.envfile with a new name,new-cluster.env. - Edit the new
new-cluster.envfile and change the value of theCLUSTER_NAMEparameter tonew-cluster. - Change any other parameter as required.
- Exit
sudo su - oracleand switch back to theopcuser. - Create the cluster instance by running the
sudo systemctl enable coherence@new-cluster.servicecommand. - Start the new cluster instance by running the
sudo systemctl start coherence@new-cluster.servicecommand.