mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #389] Is it necessary for the LREM argument count = 0 ? #1185
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryan961 on GitHub (Jan 28, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/389
Originally assigned to: @hibiken on GitHub.
In the case of a certain amount of data, it will cause a lot of slow queries, which will cause Redis CPU to explode, and this will enter a vicious cycle that can't be handled.
github.com/hibiken/asynq@dff2e3a336/internal/rdb/rdb.go (L312)github.com/hibiken/asynq@dff2e3a336/internal/rdb/rdb.go (L344)...
@hibiken commented on GitHub (Jan 28, 2022):
@ryalu Thank you for reporting this issue!
These
LREMoperations are executed against theasynq:{qname}:activelist which can only grow up to the number specified byConfig.Concurrencyso should be bounded to smallish number (e.g. ~100 or so).But you made a good point, that this count may only need to be set to 1 since we only need to remove just one element from the list during normal operation. I didn't put too much thoughts there but I wanted to guarantee that we remove the id from the list. We can run benchmark tests with different concurrency settings, and see if changing this to 1 would make it more performant.