Redis 8.6 reached end of life on 25 November 2026. Not “will reach” — did, three days ago. If your production cluster still answers INFO server with redis_version:8.6.x, or with the 7.4 line that a lot of teams quietly froze during the license shake-up, you are running a data layer that receives no upstream fixes. Meanwhile Redis Open Source 8.12 went GA on 22 November 2026 with compressed bitmaps, a new B+ tree encoding for large sorted sets, and member-level expiration for sets.

That timing is the whole problem. You have a five-week window (8.10 support was already superseded on 22 November) where upgrading is a planned maintenance task instead of an incident response. This guide is the upgrade plan I’d hand to a team on Monday morning: what actually changed, which of the three migration paths fits your topology, and the failure modes that turn a 20-minute upgrade into a two-day rollback.

TL;DR: The Quick Verdict

Single node under ~50 GB with a maintenance window: Path C (dump and restore) is the least risky and the fastest to execute. Replication pair or Sentinel setup: Path A (replica-first rolling) — promote the upgraded replica, rebuild the old primary, no data loss. Redis Cluster with shards over 20 GB: Path A per shard with CLUSTER FAILOVER, never a full-cluster restart. Run MODULE LIST before anything else: legacy RedisJSON/Search .so files are the number one reason 8.x containers crash-loop on boot. Target 8.12, not 8.10 — 8.10’s support ended the same day 8.12 shipped.

Redis release and support status, November 2026

The dates below come straight from the release calendar; the “verdict” column is my read for production use.

ReleaseLatest patchReleasedSupport endsVerdict for production
8.128.12.02026-11-22ActiveTarget this. Newest features, full fix stream
8.108.10.32026-10-26Superseded 2026-11-22Only as a stepping stone
8.88.8.42026-05-252027-01-29Acceptable short-term, plan the move
8.68.6.82026-02-112026-11-25 (EOL)No fixes. Upgrade now
8.48.4.82025-11-182026-08-10 (EOL)Unsupported for three months

The repository itself is as alive as ever: 77,766 stars, last push 27 November 2026, and the core is still plain C. Star count does not matter for your upgrade, but release cadence does — Redis now ships minor versions roughly every three months, which means the “upgrade once a year” habit leaves you permanently one cycle behind and, as of this week, permanently out of support.

What Redis 8.12 actually changed

The 8.12 notes list four things that matter operationally, and one that matters for memory planning:

  • Compressed bitmaps. The redis-roaring project was merged into the core, so bitmap-heavy keys use less memory and range operations get faster. A new BITRANGEINTARRAY command exposes the offsets of set bits in a range — the kind of operation that used to require BITFIELD gymnastics or a Lua script.
  • B+ tree encoding for large sorted sets. Leaderboards and time-ordered indexes above the listpack threshold get a substantial memory reduction. MEMORY USAGE numbers you recorded on 8.10 will not match after the upgrade — sometimes by a lot.
  • Set member expiration. Sets can now carry per-member TTLs, which finally kills the “one key per session” workaround for things like recently-viewed lists and tag buckets.
  • BLESS, a command that protects specified keys from eviction, and ZMOVE / BZMOVE / ZMOVEMEMBER for atomic moves between sorted sets.

Two things that did not change but people assume did: the build toolchain (JSON, time series, Bloom/cuckoo/count-min/top-k, t-digest and the query engine are all compiled into the core now, and the build wants LLVM 21, CMake 3.25–3.31.6 and Rust 1.94 if you compile from source rather than use the image), and the license model. Redis 8 and later is tri-licensed RSALv2 / SSPLv1 / AGPLv3 — pick AGPLv3 if you need a genuine open-source grant; 7.2 and earlier stay BSD-3.

Because the new commands are recent, do not trust a blog post (including this one) for argument order. Ask the server:

1
2
3
4
# Always confirm signatures against the running build
redis-cli COMMAND DOCS SEXPIRE | head -30
redis-cli COMMAND DOCS BITRANGEINTARRAY | head -20
redis-cli COMMAND COUNT

A set with expiring members, using the documented shape (SEXPIRE key seconds plus member list, verified via COMMAND DOCS above):

1
2
3
4
redis-cli SADD promo:black-friday "sku-1042" "sku-2210" "sku-8871"
# Read the TTL back before you wire it into application code
redis-cli STTL promo:black-friday
redis-cli SETPERSIST promo:black-friday

And a bitmap range read that used to need a scan:

1
2
redis-cli SETBIT visitors:2026-11-28 4113 1
redis-cli BITRANGEINTARRAY visitors:2026-11-28 0 8191

The pre-flight audit (do this before touching any node)

Every failed Redis upgrade I have seen skipped one of these five checks. Run them against the old primary and keep the output in the change ticket.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# 1. Version and role on every node
for h in 10.0.0.11 10.0.0.12 10.0.0.13; do
  echo "== $h"; redis-cli -h $h INFO server | grep -E "redis_version|redis_mode"
  redis-cli -h $h INFO replication | grep -E "role|master_link_status"
done

# 2. Modules: the upgrade blocker
redis-cli MODULE LIST

# 3. Persistence settings that decide your rollback story
redis-cli CONFIG GET appendonly appendfsync aof-use-rdb-preamble save

# 4. Dataset shape and hot keys
redis-cli --bigkeys
redis-cli MEMORY USAGE promo:black-friday SAMPLES 0

# 5. Cluster health, if applicable
redis-cli --cluster check 10.0.0.11:6379

If step 2 returns module:name=ReJSON or search loaded from a .so you compiled yourself, stop. Redis 8 bundles those capabilities in the core, and loading the old shared object alongside them is a startup failure waiting to happen. Remove the loadmodule lines from redis.conf, boot the new binary, then prove the bundled commands answer:

1
2
3
redis-cli JSON.SET doc:1 '$' '{"tier":"gold"}'
redis-cli FT._LIST
redis-cli TS.CREATE metrics:latency

Three migration paths, compared honestly

PathDowntime per shardData riskRollbackCluster supportBest for
A. Replica-first rollingSeconds (failover) to ~1 minVery low; replica is already caught upPromote the old primary back if you kept it intactNative, per shardReplication, Sentinel, Cluster
B. Blue-green cutoverZero to near-zeroLow, but dual-write logic is yours to get rightInstant DNS/service switch backAvailable, operationally heavyStrict SLOs, schema-adjacent changes
C. Dump and restoreMinutes to hoursDepends entirely on your last snapshotRestore the old snapshot on the old binaryNoSingle nodes, dev/staging, <50 GB

Path A — Replica-first rolling upgrade

This is the default for anything with a replica, and it is the only path that works shard by shard in a cluster.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# On the replica that will become primary: confirm it is fully caught up
redis-cli -h 10.0.0.12 INFO replication | grep -E "master_link_status|master_last_io_seconds_ago|slave_repl_offset"

# Promote it, so the shard keeps serving while the old primary is rebuilt
redis-cli -h 10.0.0.12 REPLICAOF NO ONE

# Repoint your service/DNS to 10.0.0.12, then upgrade the old primary's binary
# and bring it back as a replica of the new primary
redis-cli -h 10.0.0.11 REPLICAOF 10.0.0.12 6379
redis-cli -h 10.0.0.11 INFO replication | grep master_link_status   # wait for "up"

In Redis Cluster the same idea is expressed with CLUSTER FAILOVER against an already upgraded replica of each shard, then upgrading the demoted node:

1
2
3
4
redis-cli --cluster check 10.0.0.11:6379
redis-cli -h 10.0.0.12 CLUSTER NODES | grep myself
redis-cli -h 10.0.0.12 CLUSTER FAILOVER      # add TAKEOVER only if the primary is unreachable
redis-cli --cluster check 10.0.0.11:6379     # confirm slots and no failed nodes

The trap in Path A is durability, not availability. If appendfsync is everysec (the sane default), the last second of writes can vanish on a hard failover. Check it explicitly and call it out in the change ticket — WAITAOF 1 0 <timeout> is how you prove the AOF reached a replica before you cut over.

Path B — Blue-green cutover

You stand up a fresh 8.12 deployment, replay or dual-write into it, then flip the endpoint. It is the only way to get truly zero downtime on a single-primary setup, and it is the only path where you can walk away cleanly if the new version misbehaves on your workload. The cost is real: dual-write code, a reconciliation pass for keys written during the cutover, and a cache warm-up plan so the new tier does not get stampeded by cold misses.

Use it when the upgrade is bundled with something else — a new instance family, a move to a managed service, or a change in key naming. Do not use it for a routine patch bump; you will spend a week on plumbing to save ninety seconds of failover.

Path C — Dump and restore

For a single node with a maintenance window, nothing beats it for simplicity:

1
2
3
4
5
# Snapshot the old node, then stream the RDB to the new one
redis-cli -h 10.0.0.11 BGSAVE
redis-cli -h 10.0.0.11 LASTSAVE
redis-cli -h 10.0.0.11 --rdb /backup/redis-8.12-upgrade.rdb
ls -lh /backup/redis-8.12-upgrade.rdb

Bring up the new build with that file in place. The Docker shape below is what I use for the verification pass — pin the patch version, keep AOF on, and give the container a real healthcheck so Compose does not hand traffic to a booting server:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
  redis:
    image: redis:8.12.0
    command:
      - redis-server
      - --appendonly
      - "yes"
      - --appendfsync
      - everysec
      - --aof-use-rdb-preamble
      - "yes"
      - --maxmemory
      - 4gb
      - --maxmemory-policy
      - allkeys-lru
    ports:
      - "6379:6379"
    volumes:
      - redis-data:/data
      - /backup/redis-8.12-upgrade.rdb:/data/dump.rdb:ro
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 5s
      timeout: 3s
      retries: 5
volumes:
  redis-data:

Then verify the dataset survived before you let traffic in: DBSIZE and a sample of your biggest keys should match the pre-upgrade numbers you wrote down in the audit step.

RedisInsight workbench inspecting keys and command output against a live Redis instance

Decision matrix: pick in ten seconds

Your situationRecommended pathWhy
Single node, <50 GB, maintenance window allowedC — dump and restoreFastest to execute, easiest to reason about
Primary + replica, or SentinelA — replica-firstNo data loss, failover measured in seconds
Redis Cluster, shards >20 GBA per shard with CLUSTER FAILOVERRolling restart of the whole cluster risks slot loss
Strict zero-downtime SLOB — blue-greenOnly path with a real abort button
Legacy .so modules still loadedFix modules first, then ANothing else matters until boot succeeds
Still on 7.2/7.4A or C straight to 8.12The license and support story changed; stop deferring

Pitfalls that turn a Redis upgrade into an outage

  1. Downgrade is not a plan. New encodings (compressed bitmaps, B+ tree sorted sets) are written into your RDB/AOF. Assuming an older binary can read a newer snapshot is exactly how teams lose a dataset during “rollback”. If rollback matters, keep the old node’s data intact and roll back to it, not to an older binary on new data.
  2. MEMORY USAGE baselines break. The B+ tree encoding changes reported sizes. Renegotiate maxmemory after the upgrade using fresh measurements, or your eviction rate will move without a code change.
  3. Module leftovers. Bundled JSON/Search/TimeSeries in core plus your old loadmodule lines equals a crash-loop. Delete the lines, keep the data.
  4. Client libraries lag the server. Old client majors may not know the new commands — they will return “unknown command” errors, which application code often swallows into a nil. Bump the client before the server, and check the client’s error handling with COMMAND INFO BITRANGEINTARRAY.
  5. Cluster upgrades done in parallel. Two shards failing over at once can drop below quorum for that window. Serialize per shard and watch cluster_state:ok between steps.
  6. Replica lag hidden by INFO. master_link_status:up does not mean zero lag. Compare slave_repl_offset to the primary’s master_repl_offset before promoting, and use WAITAOF when durability is contractual.

FAQ

Is Redis 8.12 a drop-in replacement for 7.4? For data and commands, essentially yes — the core protocol is unchanged and existing clients keep working. The differences that bite are operational: bundled modules (drop your old .so loads), the license (8.x is tri-licensed RSALv2/SSPLv1/AGPLv3, 7.2 was BSD-3), and new encodings that make downgrade unsafe.

How long should a Redis 8.12 upgrade take? A replica-first failover is seconds; the binary rebuild and resync on the demoted node is typically 5–20 minutes depending on dataset size. Dump and restore on a 20 GB dataset is usually 10–30 minutes of transfer plus load time. Cluster upgrades are the long tail: budget one maintenance window per shard rather than one for the cluster.

Can I downgrade from 8.12 back to 8.10? Treat that as unsupported. The 8.12 line introduces new internal encodings that get persisted; an older binary may refuse or misread the data. If you need a rollback path, keep the old node and its data untouched until the new deployment has survived a full traffic cycle.

Should I switch to Valkey instead of upgrading? That is a different decision with its own trade-offs — licensing, module coverage, and where your client libraries are tested. If you are staying on Redis, 8.12 is the supported target; if you are evaluating the fork, compare the full matrix before committing, and do not mix a version upgrade with a vendor switch in the same change window.

Do I have to rebuild from source to get JSON, Search, and TimeSeries? No. Official 8.x builds include them, which is precisely why the old module files must go. Building from source pulls in LLVM 21, CMake 3.25–3.31.6 and Rust 1.94; for most teams the official image is the right call.

What is the single most useful pre-upgrade check? redis-cli MODULE LIST. Every other failure mode is recoverable with patience; a boot-time module conflict on a node you just replaced is the one that costs you a night.

For the tooling side of moving data between versions and topologies, our Redis migration tools comparison covers RedisShake, redis-port and redis-dump-go against real datasets. If your upgrade touches failover design rather than version numbers, the Sentinel vs Cluster high-availability guide is the companion read, and persistence strategies for RDB and AOF explains why your rollback plan depends on appendfsync more than on the version number.


💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com