Should snapshots always be taken on the leader? O...
# community-help
m
Should snapshots always be taken on the leader? Or does it not matter?
j
For disaster recovery purposes it doesn't matter.
But if it's for upgrades, you want to do the snapshots on the leader, to make sure all writes in the Write Ahead Log have been persisted into a snapshot
👍 2
m
Wouldn’t you lose writes for disaster recovery as well?
j
If there is a continuous stream of writes coming in and you need to take a snapshot, then it has to be done at some point as a point in time operation
For eg, even if you snapshot every minute (which I wouldn't recommend), and you restore the most recent snapshot you'll be sacrificing the writes that came in since the time you took the snapshot
👍 1