Stop, start, or restart a node with OpsCenter
Use OpsCenter to stop, start, or restart the DataStax Enterprise (DSE) service on one or more nodes.
If OpsCenter role-based security is enabled, you must have a role with the Start and Stop Node Operations permission.
Stop a node
-
In the OpsCenter navigation menu, click the name of the cluster that you want to manage, and then click gamepad Nodes.
-
On the List tab, select the checkbox for each node that you want to stop.

-
Click Other Actions, and then select Stop.
-
Select whether you want to drain the node before stopping (recommended), and then click Stop DSE.

Start a node
-
In the OpsCenter navigation menu, click the name of the cluster that you want to manage, and then click gamepad Nodes.
-
On the List tab, select the checkbox for each node that you want to start.

-
Click Other Actions, and then select Start.
-
On the confirmation banner, click Show Details to monitor the operation.
Restart a node
-
In the OpsCenter navigation menu, click the name of the cluster that you want to manage, and then click gamepad Nodes.
-
On the List tab, select the checkbox for each node that you want to restart.
If the restart operation targets multiple nodes, the actions run sequentially. The next queued node is restarted as soon as the start command for the current node returns. To perform a rolling restart on an entire cluster, see Restart a cluster.

-
Click Restart.
-
Select whether you want to drain the node before restarting (recommended), and then click Restart DSE.

Customize the startup and shutdown scripts
When you start, stop, or restart a node from the OpsCenter UI or API, the DataStax Agent attempts to determine the optimal way to run the operation.
If the agent is unable to determine the best way, or you need to specify custom behavior, you can override the default start-cassandra and stop-cassandra scripts.
These scripts are managed on each node as part of the DataStax Agent installation.
-
Access the node where you want to customize the startup or shutdown script.
-
Change to the DataStax Agent directory that contains example script files named
start-cassandra.exampleandstop-cassandra.example.The default location depends on the installation type:
-
Package installations:
/usr/share/datastax-agent/bin -
Tarball installations:
INSTALL_DIRECTORY/bin
-
-
Remove the
.exampleextension from the script that you want to customize:mv start-cassandra.example start-cassandra -
Edit the script as needed.
The script should return an exit code of
0when successful, and a non-zero value if it fails. For more information about DSE start and stop commands, see Start and stop DataStax Enterprise (DSE). -
Make the script executable:
chmod 755 start-cassandra
The next time that you start or stop the node from the OpsCenter UI or API, the DataStax Agent runs your custom script.