NAME
server_failover.pl
DESCRIPTION
This example demonstrates how you can switch between several servers. If one of the servers goes down, RedisDB will connect to another one. All you need to do is to set new host and port attributes in on_connect_error callback. After callback returns, module tries to establish connection again using new parameters.