Database / ValKey Interview questions
How do you perform a zero-downtime Valkey version upgrade?
In a replicated or clustered deployment, upgrade replicas first, one at a time: stop the replica, swap the binary, restart it, and wait for it to fully catch up before moving to the next one.
Once an upgraded replica is caught up, fail over to it so it becomes the new primary, then upgrade the old primary as a replica of the new one; in Cluster mode, repeat this per shard so at least one node in every shard keeps serving its slots throughout.
Before starting, check the release notes for breaking changes to the RDB/AOF format or deprecated commands, and monitor error rates closely as each node is upgraded before proceeding to the next.
More Related questions...