redis_failover is a ZooKeeper-based automatic master/slave failover solution for Ruby
Full article: http://rubygems.org/gems/redis_failover