skip to content

As the lead for a Redis fleet, what upgrade policy do you set: how far behind may nodes run, and how do you prove a rollback works?

level: principalimportance: should knowfreq 28%

answer

  1. support table is a snapshot
  2. urgency levels in the release notes
  3. forward is easy, backward is not
  4. a drill, not a document
  5. licence crossing at 7.4 and 8.0

basics

~20 s

Stay on a release line Redis still patches, set deadlines by release-note urgency, and rehearse each jump. Treat rollback as restoring a backup with data loss, proved by a timed drill on the old binary: no downgrade is documented.

solid answer

~50 s

There is no single right number, so I would write the policy around risks. Redis's `SECURITY.md` says security fixes generally go to a single previous major version, and its table marks some lines supported and others not, so I would require every node on a line still being patched and re-read that table each cycle. `00-RELEASENOTES` grades each release by urgency, so `SECURITY` and `CRITICAL` get days and `LOW` waits for the next cycle. For rollback, the upgrade pages document only restoring pre-upgrade files, and an older loader refuses a newer RDB format version, so going back costs every write since the backup. I would prove it with a timed drill: restore into the old binary, verify keys, record the data lost. Until that passes, the upgrade is one-way. The move from 7.2 also crosses a licence boundary that someone must approve.

go deeper

for a junior

Recall that Redis publishes release urgency levels and a supported-version table, and that a team follows them to decide when to upgrade.

for a middle

Explain why going back is harder than going forward: the RDB format version check, and that the upgrade pages document restoring a backup rather than a downgrade.

for a senior

Run the rollback drill and report the numbers: restore time, keys verified, writes lost. Know what a mixed-version roll allows while it lasts.

for a principal

Own the trade: patch cadence against change risk, a licence crossing at 7.4 and 8.0, and how much data loss the business accepts if an upgrade must be undone.

## What a lead is deciding An upgrade policy answers three questions in advance: how old a node may be, how fast a release must be taken, and what the team does when an upgrade goes wrong. These have no single right answer. They trade the cost of frequent change against the risk of being unpatched or stranded on an old line. ## How far behind The evidence comes from the project's own files: - **Support.** `SECURITY.md` recommends the latest version and says security issues are generally backported to a single previous major version. Its table in 8.10.3 marks 8.6.x, 8.4.x, 8.2.x and 7.4.x as supported, 7.2.x as extended until 7.4's support ends, 6.2.x as extended, and 8.0.x and the other lines below 7.2 as not supported. That table does not list 8.8 or 8.10, so read it as a snapshot and check it each cycle. - **Age is not the measure.** Under that table 8.0.x is unsupported while the older 7.4.x is supported, so a rule like "at most two minors behind" can mislead. - **Urgency.** `00-RELEASENOTES` grades releases as `LOW`, `MODERATE`, `HIGH`, `CRITICAL` or `SECURITY`. A reasonable shape, to adjust for your team: | Trigger | Deadline to consider | What pushes it shorter or longer | |---|---|---| | `SECURITY` or `CRITICAL` | Days | Network exposure, whether the affected feature is in use | | `HIGH` | Next change window | Whether the bug's subset includes you | | `MODERATE` | Program it this quarter | Fleet size, staff time | | `LOW` | Next planned cycle | New features you want | | Line leaving the support table | Before it leaves | Size of the jump | ## What makes a jump expensive - **Licence.** The README places 7.2.x and earlier under BSDv3, 7.4.x to 7.8.x under RSALv2 or SSPLv1, and 8.0 onward under a choice of RSALv2, SSPLv1 or AGPLv3. Leaving 7.2 is a legal decision before it is a technical one. - **Packaging.** The 8.0 notes say stand-alone RediSearch, RedisJSON, RedisTimeSeries and RedisBloom are no longer needed, and that 8.0 deprecates earlier Redis and Redis Stack versions. Build and image pipelines change with that. - **Client-visible changes.** The 8.0 pre-release notes list potentially breaking changes such as `GETRANGE` returning an empty bulk when the negative end index is out of range. Someone must read these for each jump. - **Config.** An unknown directive stops startup, so compare `CONFIG GET *` between old and new on a rehearsal node. ## Why rollback is the hard part Going forward is well supported. Going back is not: - The upgrade pages say nothing about downgrade. Their path is copying back the files saved before the upgrade. - The standalone page's restore steps do not say which binary to run, so your runbook must. - The loader refuses an RDB whose format version is above its own, reporting `Can't handle RDB format version`. In 8.10.3 the version is 15. Files written after the upgrade may be unreadable to the old binary whenever the format was bumped between the two releases. - For the same reason, do not plan on an old replica following the new primary through a full sync. So a rollback is a restore, and its data-loss window is everything written since that backup. ## How to prove it A rollback is proven by doing it, on a copy, with the clock running: 1. Take the backup the way production would, right before a rehearsed cutover. 2. Apply the upgrade and write through it for a realistic period. 3. Restore the backup onto the old binary with the old config. 4. Verify key counts and application reads, and check `INFO persistence`. 5. Record the time taken and the writes lost, and show them to the people who own the data. If the business cannot accept that loss, say so before the upgrade, and shorten the window with a long soak on one replica before any cutover and a freeze on new commands until the whole fleet is done. ## The trade-offs to own - **Staying on 7.2** keeps the BSD licence and costs you a shrinking support promise. - **Fast tracking** reduces each jump and raises how often you run the procedure. - **Mixed versions** are normal during a roll, but a long mixed period limits which new features anyone may use.

  • A team wants to stay on Redis 7.2 indefinitely because of its licence. How do you respond?
    That is a legitimate choice, with an expiry. The 7.2 line stays BSDv3, but `SECURITY.md` says its extended support runs until 7.4's support ends. So ask what happens after that: who patches it, what the exit plan is, and what exposure is accepted. Record the decision and its trigger, rather than letting it become the default.
  • What would you measure in a canary before letting an upgrade proceed across the fleet?
    Start with one replica on the new version, so it takes real replication traffic at low risk. Compare latency, memory and errors with its old-version peer, and run any read traffic you can route to it. Set the soak time from how long your weekly or monthly jobs take to run, and confirm the replica survives a restart and a resync.
  • Does the same rollback reasoning apply to the append-only file?
    Be equally cautious. A `redis.conf` default of `aof-use-rdb-preamble yes` means the base file can be RDB format, so the same version check applies, and an AOF written after the upgrade can hold commands the old binary lacks. Prove it in the drill rather than assuming the log format is more portable.

  • Redis always lets you start an older binary on files written by a newer one.
  • Staying on 7.2 forever is safe because its support is extended.
  • A backup taken before the cutover gives a rollback with no data loss.
  • A rollback is proven once the runbook has been reviewed.
  • An older replica can always keep following an upgraded primary, so rollback is just a failover.

Assumes Redis 8.10.3's SECURITY.md, README and RDB format version; the support table and licence terms change between releases, so re-check them at each cycle.