• I didn't see any posts on using Redis Sentinal, but I'd like to learn how to do database fail-over. Mainly because the primary machine my forum runs on is quite old and I have a few other machines on the LAN that could store the Redis slaves.

    As far as the setup, is there anything I shouldn't do in their minimal config?

    sentinel monitor mymaster 127.0.0.1 6379 2
    sentinel down-after-milliseconds mymaster 60000
    sentinel failover-timeout mymaster 180000
    sentinel parallel-syncs mymaster 1
    
    sentinel monitor resque 192.168.1.3 6380 4
    sentinel down-after-milliseconds resque 10000
    sentinel failover-timeout resque 180000
    sentinel parallel-syncs resque 5
    

    After setting up my existing Redis database as the master, it seems like all I need to do is set the slaveof parameter on my second machine using the Master IP address and Master PW.

Suggested Topics

| |