when i try the same approach for the resque.yml
that works without an issue with the config.cache_store = :redis_cache_store
, the resque workers
are unable to connect at all:
name: mymaster
role: master
sentinels:
- host: host_one
port: 26379
- host: host_two
port: 26380
- host: host_three
port: 26381
password: super_safe_pass
when i add the url for the master server like:
name: mymaster
role: master
url: "redis://mymaster"
sentinels:
- host: host_one
port: 26379
- host: host_two
port: 26380
- host: host_three
port: 26381
password: super_safe_pass
the resque workers
connect to the master. but if there is a failover, they wont be able to connect to the new master, unless the old master becomes the new master again. seems like they dont talk to the sentinels at all.
for now i am reusing the Redis.cache_store
connection, but i am curious how to setup the resque.yml
to make that work too without reusing an existing connection.