by RobSpectre · 13y ago · 0 comments
Redis has two resynchronization modes. One just recovers a small delta from the primary, if it hasn't diverged that far. If the primary has accepted too many writes, the secondary has to initiate a full resync, which is much more expensive. Since Twilio's postmortem says their nodes initiate full resyncs, I suspect that had Twilio promoted a secondary, they would have lost a significant number of writes.
Probably best, under these kinds of scenarios, to design the system such that lost writes don't cause overbilling. ;-)
Btw: When going to a slave, be careful because the state the slave is in might be out of date compared to overloaded master at the point of moving over.