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 Upgrading AnzoGraph.
  2. When making changes to the <install_path>/config/ip_addrs.conf file if you add or remove servers from an AnzoGraph cluster.

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

To stop the database, run one of the following commands from the leader server:

  • If services are set up, run the following command:
    sudo systemctl stop anzograph
  • If services are not set up, stop the database with the following system manager command:
    <install_path>/bin/azgctl -stop

    Make sure that you are logged in as the Anzo service account user any time you start and stop AnzoGraph using the system manager commands.

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 one of the following commands from the leader server:

  • If services are set up, run the following command:
    sudo systemctl start anzograph
  • If services are not set up, start the database with the following system manager command:
    <install_path>/bin/azgctl -start

    Make sure that you are logged in as the Anzo service account user any time you start and stop AnzoGraph using the system manager commands.

Stop the Database and the System Management Daemon

To stop the database and system management daemon, run the appropriate commands from the leader server:

  • If services are set up, run the following commands on the leader server to stop the database and daemon on all servers in the cluster:
    sudo systemctl stop anzograph
    sudo systemctl stop azgmgrd
  • If services are not set up, run the following commands on the leader server to stop the database and daemon on all servers in the cluster:
    <install_path>/bin/azgctl -stop
    <install_path>/bin/azgctl -stopdaemon

    Make sure that you are logged in as the Anzo service account user any time you start and stop AnzoGraph using the system manager commands.

Start the System Management Daemon and the Database

To start the system management daemon, run one of the following commands. On clusters, run the command on each server in the cluster:

  • If services are set up, run the following command on all servers in the cluster:
    sudo systemctl start azgmgrd
  • If services are not set up, run the following command on all servers in the cluster:
    <install_path>/bin/azgmgrd

    Make sure that you are logged in as the Anzo service account user any time you start and stop AnzoGraph using the system manager commands.

To start the database after the system management daemon is running, run one of the following commands on the leader node:

  • If services are set up, run the following command:
    sudo systemctl start anzograph
  • If services are not set up, start the database with the following system manager command:
    <install_path>/bin/azgctl -start

Reinitializing 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