Starting and Stopping AnzoGraph
The Query & Admin Console provides options to stop and start AnzoGraph. The following information provides instructions for starting and stopping AnzoGraph when the Query & Admin Console is not included in the deployment or is unavailable.
See Using the Query & Admin Console for information on using the Query & Admin Console to start and stop AnzoGraph as well as performing other operations using the Console graphical user interface.
To start AnzoGraph with Docker, run the following command:
docker start anzograph_container_name
Where anzograph_container_name is the name of the AnzoGraph container to start. For example:
docker start anzograph
To stop AnzoGraph with Docker, run the following command:
docker stop anzograph_container_name
Where anzograph_container_name is the name of the AnzoGraph container to stop. For example:
docker stop anzograph
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 in a RHEL/CentOS environment.
- When making changes to the
install_path/config/ip_addrs.conffile to add or remove servers from a cluster in an RHEL/CentOS environment.
Follow the appropriate instructions below, depending on the current state of AnzoGraph 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
- Reinitializing the Database
To stop the database, run the following command from the leader server:
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.
To start the database, run the following command from the leader server:
To stop the database and system management daemon, run the following commands from the leader server:
To start the system management daemon, run the following command. On clusters, run the command on each server in the cluster:
To start the database after the system management daemon is running, run the following command on the leader node:
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