add examples/test.rb to test failover with wmrs
put down failed host's priority in candidate list for slave