siebertm/redis-mmm — Issue #1: ex-redis_master overwrites data, when coming up again
Author: mindreframer
Created: 2011-12-15 12:07:54+00:00
State: open

Just a simple test:

require 'redis'
r = Redis.new(:host => "virtual_ip")

r.del "redis_mmm_test"
i = 0
loop do
i += 1
begin
r.lpush "redis_mmm_test", i
puts r.llen "redis_mmm_test"
sleep 1
rescue => e
puts "redis failed with #{e.inspect}"
end
end

output:

...
90
91
92
redis failed with #
redis failed with #
redis failed with #
redis failed with #
redis failed with #
redis failed with #
redis failed with #
redis failed with #
redis failed with #
1
2
3
....