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

Add a Redis environment variable for sidekiq #16188

Merged
merged 1 commit into from
May 9, 2021

Conversation

noellabo
Copy link
Contributor

@noellabo noellabo commented May 9, 2021

Add an environment variable to configure a Redis server dedicated to Sidekiq.

  • SIDEKIQ_REDIS_HOST
  • SIDEKIQ_REDIS_PORT
  • SIDEKIQ_REDIS_DB
  • SIDEKIQ_REDIS_PASSWORD

or

  • SIDEKIQ_REDIS_URL

If you want to separate Redis on a server that is already in operation, you need to migrate the key for Sidekiq to a new Redis. It includes, but is not limited to, the following keys:

dead
processes
queues
queue:*
retry
schedule
schedules
schedules_changed
sidekiq-scheduler:*
stat:*
uniquejobs:*

Alternatively, you can use the brand new Redis without migrating if you don't have to worry about past statistics or jobs being retried. Even so, it's a good idea to remove the key from your old Redis.

@Gargron Gargron merged commit 9b18914 into mastodon:main May 9, 2021
@noellabo noellabo deleted the add-redis-for-sidekiq branch May 9, 2021 08:40
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
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.

2 participants