redis performance_error ai_generated true

Warning: Consumer group lag exceeds threshold

ID: redis/stream-consumer-lag

Also available as: JSON · Markdown
82%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
7 active

Root Cause

Redis Streams consumer group falling behind producers, growing pending list.

generic

Workarounds

  1. 88% success Add more consumers to the consumer group
    XREADGROUP GROUP grp consumer-N COUNT 100 BLOCK 0 STREAMS mystream >
  2. 82% success Claim old pending messages with XAUTOCLAIM
    XAUTOCLAIM mystream grp consumer-1 36000000 0-0 COUNT 100

Dead Ends

Common approaches that don't work:

  1. Increase BLOCK timeout to wait longer 70% fail

    Blocking longer does not help catch up with backlog.

  2. Delete and recreate consumer group 85% fail

    Loses all pending message tracking and acknowledgments.