Restart, upgrade, uninstall and migrate

Restart, logs, upgrade, node uninstall and control-plane migration commands for cdnca.

Restart

Control plane:

systemctl restart cdnca-control-api cdnca-agent-gateway cdnca-control-nats cdnca-control-web

Node:

systemctl restart cdnca-edge-agent cdnca-openresty-native

Restarting cdnca-edge-agent keeps active L4 connections; restarting cdnca-openresty-native drops them — do it off-peak.

Logs

journalctl -u cdnca-control-api -n 200 --no-pager

Upgrade

Upgrade only from Maintenance in the control plane (a version can be pinned); nodes are upgraded by the control plane. Never replace binaries by hand.

Uninstall a node

/usr/libexec/cdnca-edge-agent/uninstall.sh

Add --purge to also delete the node identity and local state (asks for confirmation):

/usr/libexec/cdnca-edge-agent/uninstall.sh --purge

Uninstall the control plane

There is no uninstall script for the control plane. Reinstall the OS to remove it completely.

Move the control plane to a new server

On a fresh new server, run the following; the installer fetches an encrypted backup from the old server over SSH, restores it and waits for nodes to reconnect:

bash install-control.sh migrate-from root@旧主控IP --ssh-port 22 --wait-nodes 10m

You can also do it from Backup & migration in the console. Shut down the old server only after checking; to roll back, point DNS back and unfreeze the old server.