Service Startup and Shutdown Recommendation Manual
Background
During service use, server migration, data center inspection, and similar situations may require shutting down or restarting servers. In these cases, services must be stopped in advance. Although our program allows servers to be shut down without stopping services first and supports automatic service startup after server startup, standardized operations are still necessary to shut down, start, and inspect services in order to avoid data loss.
Shut Down Services
-
Log in to the server. All operations below are based on root permissions.
-
Shut down the MySQL database. This is required. For multi-node environments, perform this operation on the corresponding node.
sudo docker stop guandata_db
- Shut down the Cassandra database. This is required. For multi-node environments, perform this operation on the corresponding node.
sudo docker stop cassandra
- Shut down k8s services. This is optional. Perform this operation on each node.
sudo systemctl stop kubelet
- Shut down Docker services. This is optional. Perform this operation on each node.
sudo systemctl disable docker
sudo systemctl stop docker
Note: For multi-node operations, start from the master node.
Start Services
Normally, services start automatically on boot. If service exceptions occur after a server restart, try the following commands:
- Restart Docker services. This can be performed on each node.
sudo systemctl enable docker
sudo systemctl restart docker
- Restart k8s services. This can be performed on each node.
sudo systemctl restart kubelet
- Restart the Cassandra database. For multi-node environments, perform this operation on the corresponding node.
sudo docker restart cassandra
- Restart the MySQL database. For multi-node environments, perform this operation on the corresponding node.
sudo docker restart guandata_db
Note: For multi-node operations, start from the master node.
Check Service Status
-
Open the Guandata login page directly and check whether the login page opens normally.
-
After logging in to the server with root permissions, run the
kubectl get podscommand to obtain the pod list shown below.

Check the status of the corresponding pods. Running indicates normal running status.
If a pod is in an abnormal status, run kubectl delete pod guandata-server-pod-name to delete the corresponding pod. After the pod is deleted, it is automatically recreated and restarted.
If restarting a single pod still cannot restore services, try restarting Docker according to the operations in Start Services.
Note: If services still cannot be enabled normally after the operations above, contact the corresponding Guandata personnel. We will provide professional support.