Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using redis as a cache server. Can I somehow configure multiple redis servers, that the cache is fully functional (read/write) even if some of them go offline?

I looked into master->slave, but the problem I see there is, that if the master fails, and I allow writes to the slaves, they get overwritten once the master is up again. Now the master just serves the old data.

The only solution I could come up was disabling write-to-disc, but that sucks as I loose everything if I have to restart the master. And I guess, slaves wouldn't be synced anymore if the master is gone.

share|improve this question
possible duplicate of Redis Master and Slave usage – quanta Feb 23 '13 at 3:01
Not a duplicate as far as I can tell. – dunxd Feb 25 '13 at 11:23
up vote 3 down vote accepted

There is no master-master setup in Redis.
What happens when your master server is going offline and you allow writes to the slave server:
The slave server becomes the master.

Obviously this requires changes of the configuration (can be done runtime).
And when you bring back the old-master you must sync the changes from the new-master.

Simply bringing up the master after a downtime would result in inconsistencies.

There is an nice explanation how to restart Redis without downtimes or data-loss:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.