BGREWRITEAOF
Start an append-only-file rewrite in the background.
BGREWRITEAOF
Complexity
O(S) fan-out; each shard freezes a copy-on-write view and hands serialise plus fsync to its own worker
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Differs
replies +OK rather than Redis's status line, rewrites one AOF per shard, and replies +OK even when AOF is disabled
See also
BGSAVECLIENTCLUSTERCOMMANDCONFIGDBSIZEDEBUGFLUSHALLFLUSHDBINFOMEMORYSAVESHUTDOWNSLOWLOG