The main Memgraph configuration file is available in
/etc/memgraph/memgraph.conf. You can modify that file to suit your specific needs. Additional configuration can be specified by including another configuration file, in a file pointed to by the
MEMGRAPH_CONFIG environment variable or by passing arguments on the command line.
Each configuration setting is in the form:
IP address on which the Bolt server should listen.
Certificate file which should be used for the Bolt server.
Key file which should be used for the Bolt server.
Number of workers used by the Bolt server. By default, this will be the number of processing units available on the machine.
Port on which the Bolt server should listen.
Server name which the database should send to the client in the Bolt INIT message.
Time in seconds after which inactive Bolt sessions will be closed.
Use the cost-estimating query planner.
Maximum allowed query execution time. Queries exceeding this limit will be aborted. Value of 0 means no limit.
Maximum number of generated plans for a query.
Directory where modules with custom query procedures are stored.
Time to live for cached query plans, in seconds.
Maximum count of indexed vertices which provoke indexed lookup and then expand to existing, instead of a regular expand. Default is 10, to turn off use -1.
Storage garbage collector interval (in seconds).
Controls whether edges have properties.
Controls whether the storage recovers persisted data on startup.
Storage snapshot creation interval (in seconds). Set to 0 to disable periodic snapshot creation.
Controls whether the storage creates another snapshot on exit.
The number of snapshots that should always be kept.
Controls whether the storage uses write-ahead-logging. To enable WAL periodic snapshots must be enabled.
Issue a 'fsync' call after this amount of transactions are written to the WAL file. Set to 1 for fully synchronous operation.
Minimum file size of each WAL file.
log messages go to stderr in addition to logfiles
Path to directory in which to save all permanent data.
Path to where the log should be stored.
Memory warning threshold, in MB. If Memgraph detects there is less available RAM it will log a warning. Set to 0 to disable.
Set to true to enable telemetry. We collect information about the running system (CPU and memory information) and information about the database runtime (vertex and edge counts and resource usage) to allow for easier improvement of the product.
You can include additional configuration files from this file. Additional files are processed after this file. Settings that are set in the additional files will override previously set values. Additional configuration files are specified with the