Relocating AnzoGraph Directories

Follow the instructions in this section to designate alternate locations for certain directories included in the AnzoGraph installation. You have the option to relocate the persistence directory where the system saves the data in memory to the file system, the internal directory where the system saves database-related files such as logs and generated code, and the spill directory where the system saves any temporary query files that spill to disk.

You can change the settings described in this section at any time. Once you restart the database, AnzoGraph starts saving any new files in the directory locations that you specify. The system does not relocate any existing directories or files, however. You can move the existing files manually if needed.

  1. Stop the database by running the following command on the leader node:
    ./install_path/bin/azgctl -stop
  2. Open the AnzoGraph settings file, settings.conf, in a text editor. The file is in the AnzoGraph_root_dir/config directory.
  3. Change or add any of the following settings to settings.conf. Add one setting and value per line, and use the following syntax to specify the setting name and value: setting=value.
    • internal_directory: The directory where you want AnzoGraph to save internal database-related files such as generated code, logs, and query plans. 
    • persistence_directory: The directory where you want AnzoGraph to save data when writing data to disk.
    • spill_directory: The directory where you want the AnzoGraph to save any temporary query files that spill to disk. Important: AnzoGraph uses O_DIRECT to read the spill files into the database. If you relocate the spill directory, make sure to place it on an ext4 file system that supports O_DIRECT.
  4. Save and close settings.conf.
  5. Restart the database by running the following command:
    ./install_path/bin/azgctl -start