Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors Running Sidekiq with Dragonfly #923

Closed
ashotland opened this issue Mar 9, 2023 · 2 comments · Fixed by #941
Closed

Errors Running Sidekiq with Dragonfly #923

ashotland opened this issue Mar 9, 2023 · 2 comments · Fixed by #941

Comments

@ashotland
Copy link
Contributor

2023-03-09T14:07:47.995Z pid=533208 tid=bh04 ERROR: heartbeat: ERR invalid expire time in 'expire' command
Using large expiry value
https://github.com/sidekiq/sidekiq/blob/main/lib/sidekiq/launcher.rb#L13
We have constexpr int64_t kMaxExpireDeadlineSec = (1u << 27) - 1;

WARNING: Your Redis instance will evict Sidekiq data under heavy load.
The 'noeviction' maxmemory policy is recommended (current policy: '').
See: https://github.com/mperham/sidekiq/wiki/Using-Redis#memory
https://github.com/sidekiq/sidekiq/blob/4c101d243e9589cd3d1a81060dac602beb1652a1/lib/sidekiq/embedded.rb#L45

For sidekiq v >=7
https://github.com/sidekiq/sidekiq/blob/4c101d243e9589cd3d1a81060dac602beb1652a1/lib/sidekiq/embedded.rb#L42
It won't start at all as Dragonfly doesn't specify a valid redis version number

Porposed fixes:

Expiry: Instead of returning error truncating large expiry value, can have a flag for that.

maxmemory_policy: list it in info compatible with redis

version: list there the max redis version we are compatible with and add dragonfly_version field

@romange
Copy link
Collaborator

romange commented Mar 9, 2023 via email

romange added a commit that referenced this issue Mar 13, 2023
Related to #923.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
romange added a commit that referenced this issue Mar 13, 2023
Related to #923.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@ashotland
Copy link
Contributor Author

Related issues:
Sidkiq v>=7 requires RESP3 support #218
BRPOP sometimes not WAI #945

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 a pull request may close this issue.

2 participants