How can I change the snapshot frequency for Memgraph Platform? I'm running the latest Docker version of the Platform (MG 2.7).
1 Answers
To do this you'll need to modify the Memgraph configuration file. Since you are running a Docker it will involve some copy/edit/copy back operations:
Start Memgraph Platform with including the
-v mg_etc:/etc/memgraph
flag:docker run -it -p 7687:7687 -p 7444:7444 -p 3000:3000 -e MEMGRAPH="--log-level=TRACE"
-v mg_lib:/var/lib/memgraph
-v mg_log:/var/log/memgraph
-v mg_etc:/etc/memgraph
memgraph/memgraph-platformFind the
CONTAINER ID
of the Memgraph Docker:docker ps
Copy the configuration file from the container to your local machine:
docker cp :/etc/memgraph/memgraph.conf memgraph.conf
Open the configuration file with a text editor, and modify the
--snapshot-interval-sec
option to set the desired snapshot frequency in seconds. Save the changes to the configuration file.Copy the modified configuration file back to the container:
docker cp memgraph.conf :/etc/memgraph/memgraph.conf
Now restart the docker and your new configuration will be loaded.

- 942
- 1
- 1
- 11