In my case, the snapshot creation process started and took a considerable amount of RAM, causing dgraph alpha to die due OOM. I’ve solved it by increasing the RAM memory available from 8GB to 16GB and now I would like to know more about the snapshots in dgraph. Unfortunately I could not find so much in the documentation so here are my questions:
- How often is it run?
- According to my findings it happens when a certain number of queries have been committed, am I right?
- Is it possible to run it manually? (hence running it more often and reducing the quantity of RAM used)
- What does the process internally? Is it for log compaction?
- Is it safe to start alpha again after OOM or could there be data corruption?