dgraph alpha -h | grep snapshot
--snapshot_after int
Create a new Raft snapshot after this many number of Raft entries.
The lower this number, the more frequent snapshot creation would be.
Also determines how often Rollups would happen. (default 10000)
Yes, and I think it is a combination of things.
From docs:
When an Alpha pod restarts in a replicated cluster, it will join as a new member of the cluster, be assigned a group and an unused index from Zero, and receive the latest snapshot from the Alpha leader of the group.
Dgraph supports distributed ACID transactions through snapshot isolation.
One of the ways to do this is snapshotting. As soon as the state machine is synced to disk, the logs can be discarded. Get started with Dgraph