Start and Stop AnzoGraph DB
The Query & Admin Console provides options to stop and start AnzoGraph DB. The following information provides instructions for starting and stopping AnzoGraph DB from the file system when the Query & Admin Console is not included in the deployment or is unavailable.
The system management daemon, azgmgrd, should remain running at all times. When you restart the database, do not stop and start the daemon. There are three circumstances that require you to restart azgmgrd:
- When changing a system configuration setting value that requires a restart of the system management daemon, such as sysmgr_port or auto_restart_max_attempts.
-
When upgrading or re-installing AnzoGraph DB in a RHEL/Rocky environment.
- When making changes to the
<install_path>/config/ip_addrs.conf
file to add or remove servers from a cluster in a RHEL/Rocky environment.
Follow the appropriate instructions below, depending on the current state of AnzoGraph DB and your use case:
- Stop the Database and Leave the System Management Daemon Running
- Start the Database (the System Management Daemon is Running)
- Stop the Database and the System Management Daemon
- Start the System Management Daemon and the Database
- Reinitialize the Database
Stop the Database and Leave the System Management Daemon Running
To stop the database, run the following command from the leader server:
sudo systemctl stop anzograph
If queries are running, the system manager waits the number of seconds in stop_timeout (the default value is 30 seconds) for any outstanding queries to complete and then stops the database.
Start the Database (the System Management Daemon is Running)
To start the database, run the following command from the leader server:
sudo systemctl start anzograph
Stop the Database and the System Management Daemon
To stop the database and system management daemon, run the following commands from the leader server:
sudo systemctl stop anzograph
sudo systemctl stop azgmgrd
Start the System Management Daemon and the Database
To start the system management daemon, run the following command. On clusters, run the command on each server in the cluster:
sudo systemctl start azgmgrd
To start the database after the system management daemon is running, run the following command on the leader node:
sudo systemctl start anzograph
Reinitialize the Database
If you need to reinitialize the database to remove the generated code and any persisted data, run the following command. The system management daemon (azgmgrd) should be running.
/<install_path>/bin/azgctl -start -init