Starting and Stopping AnzoGraph

This topic provides instructions for starting and stopping 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 two circumstances that require you to restart azgmgrd:

  1. When uninstalling AnzoGraph.
  2. When making changes to the <install_path>/config/ip_addrs.conf file if you add or remove servers from a cluster.

Follow the appropriate instructions below, depending on the current state of AnzoGraph and your use case:

Stop the Database (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 Daemon is Running)

To start the database, run the following command from the leader server:

sudo systemctl start anzograph

Stop the Database and 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 Daemon and 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.

Make sure that you are logged in as the Anzo service user any time you reinitialize the database.

<install_path>/bin/azgctl -start -init