Should snapshots always be taken on the leader? Or does it not matter?
j
Jason Bosco
01/07/2025, 11:18 PM
For disaster recovery purposes it doesn't matter.
Jason Bosco
01/07/2025, 11:19 PM
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
Mike Eklund
01/08/2025, 12:18 AM
Wouldn’t you lose writes for disaster recovery as well?
j
Jason Bosco
01/08/2025, 12:19 AM
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
Jason Bosco
01/08/2025, 12:20 AM
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