redis: tolerate up to 1KB of AOF tail corruption on load
Post-2026-05-26 unclean node2 reboot left redis-v2-2's incremental AOF truncated at offset 84799139. With aof-load-corrupt-tail-max-size at its default 0, redis refuses to load any corruption and crashloops. Setting 1024 lets it truncate the corrupted tail and continue, which is the right call for a non-source-of-truth cache fronted by sentinel. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
60b2b1cdfc
commit
1eee56d0ba
1 changed files with 6 additions and 0 deletions
|
|
@ -268,6 +268,12 @@ resource "kubernetes_config_map" "redis_v2_conf" {
|
||||||
auto-aof-rewrite-min-size 128mb
|
auto-aof-rewrite-min-size 128mb
|
||||||
aof-load-truncated yes
|
aof-load-truncated yes
|
||||||
aof-use-rdb-preamble yes
|
aof-use-rdb-preamble yes
|
||||||
|
# Allow loading an AOF with up to 1KB of garbage at the tail (post-2026-05-26
|
||||||
|
# node2 unclean reboot corrupted redis-v2-2's incremental AOF at offset
|
||||||
|
# 84799139; without this, redis-v2-2 crashlooped). Redis truncates the
|
||||||
|
# corrupted tail and continues. Default is 0 (refuse to load any corruption).
|
||||||
|
aof-load-corrupt-tail-max-size 1024
|
||||||
|
|
||||||
|
|
||||||
replica-read-only yes
|
replica-read-only yes
|
||||||
replica-serve-stale-data yes
|
replica-serve-stale-data yes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue