Skip to content

Disable backoff behavior when near OOM conditions#18

Merged
rgalanakis merged 1 commit into
mainfrom
oom-disable-backoff
Jun 24, 2025
Merged

Disable backoff behavior when near OOM conditions#18
rgalanakis merged 1 commit into
mainfrom
oom-disable-backoff

Conversation

@rgalanakis

Copy link
Copy Markdown
Member

When Redis is using a lot of memory (90% of available), we want to disable queue backoff behavior.
There is a significant risk that the backoff
behavior will take jobs from the queue,
and immediately try and reschedule them.
If that happens in an OOM condition,
the re-push will fail and the job can be lost.

Additionally, the backoff behavior causes delays that slow down the clearing of the queue.

In these high-memory-utilization conditions,
it makes more sense to disable the backoff logic
and just brute force to try to get through the queue.

When Redis is using a lot of memory (90% of available),
we want to disable queue backoff behavior.
There is a significant risk that the backoff
behavior will take jobs from the queue,
and immediately try and reschedule them.
If that happens in an OOM condition,
the re-push will fail and the job can be lost.

Additionally, the backoff behavior causes delays that
slow down the clearing of the queue.

In these high-memory-utilization conditions,
it makes more sense to disable the backoff logic
and just brute force to try to get through the queue.
@rgalanakis rgalanakis force-pushed the oom-disable-backoff branch from 79c2e40 to d3deeca Compare June 24, 2025 17:36
@rgalanakis rgalanakis merged commit 3eb438d into main Jun 24, 2025
4 checks passed
@rgalanakis rgalanakis deleted the oom-disable-backoff branch June 24, 2025 17:37
@rgalanakis rgalanakis restored the oom-disable-backoff branch June 24, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant