简体   繁体   中英

Sidekiq with workers connecting to different Redis instances

In my current project, there is a Redis Instance on Heroku and Sidekiq is configured to process jobs from that instance. We need to migrate the Redis instance to Azure and I wanted to use a configuration where one Worker connects to the Redis Instance on Heroku to process any queued jobs and the rest of the Workers connecting to the new instance on Azure to avoid any data loss.

I am new to Rails and Sidekiq. Please suggest a way for achieving the desired config

The docs say that you can run this command to get the credentials:

heroku redis:credentials 

Then get the connection string with:

heroku config:get REDIS_URL -a example-app

Then you can use the connection string from REDIS_URL to connect externally for a bit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM