go-workers icon indicating copy to clipboard operation
go-workers copied to clipboard

Configuring multiple REDIS servers

Open pjmuller opened this issue 8 years ago • 3 comments

Hi,

is it possible to use go-workers with multiple REDIS servers? In Rails it is possible (see http://stackoverflow.com/questions/22626607/use-multiple-redis-servers-in-sidekiq ).

But I could not figure out if this is also possible within go-workers

pjmuller avatar Jul 13 '16 12:07 pjmuller

Hey Pieterjan,

A single go-workers process is currently tied to one redis server as the configuration is global.

In go-workers, queues are completely independent, so I'd be open to a configuration option to specify the redis host for a given queue, if you're interested in submitting a PR!

Thanks, John

jrallison avatar Jul 13 '16 15:07 jrallison

Hi John,

thanks for replying so quickly. I would like to create a pull request but I'm originally a Rails developer. Only started with go a few days back so I won't be able to do it soon.

Currently I'm hosting a simple go app on heroku. Would it be possible to easily have multiple go-workers on one dyno? And if so, could you show me a snippet of how to do that? Would be great!

pjmuller avatar Jul 14 '16 05:07 pjmuller

i have a similar requirement. From a single app/service i want to queue up jobs to two different clusters of redis.

irfn avatar Mar 07 '17 11:03 irfn