antirez/redis — Issue #182: Possibility for active/active
Author: TvL2386
Created: 2011-11-11 13:10:40+00:00
State: open

Hi, I would like to request the feature to run redis in active/active mode (like mysql active/active).

The reason I would like this, may or may not be relevent:
I am running two rails application servers with mysql active/active backends.
I'm also running resque on top of that with 4 workers on both servers.
I want all 8 workers to be able to pull jobs from the queue. Some queues can only be processed sequentially. There is a sequentially_queue with only one worker. That one worker should know all jobs for that queue. Since jobs may be inserted into either of the two application servers, all workers should be able to access all jobs (and therefor redis).

What I've done was a master/slave setup of redis where all workers point to the master. This is the only SPOF (single point of failure) in my design which I would like to fix. I have been looking into letting resque work with memcached or activerecord, but would also want to explore active/active on redis if possible (in the future). The reason for my slave is to promote it to master if necessary.