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
opc
user. Then, switch to theoracle
user by running thesudo su - oracle
command. - Open the
/opt/usr/local/etc/
directory of your current node. - Save a copy of the
default-cluster.env
file with a new name,new-cluster.env
. - Edit the new
new-cluster.env
file and change the value of theCLUSTER_NAME
parameter tonew-cluster
. - Change any other parameter as required.
- Exit
sudo su - oracle
and switch back to theopc
user. - Create the cluster instance by running the
sudo systemctl enable coherence@new-cluster.service
command. - Start the new cluster instance by running the
sudo systemctl start coherence@new-cluster.service
command.