++ed by:
MILA AERO MISHIN PERLOVER MADCAT

5 PAUSE users
4 non-PAUSE users.

Author image Pavel Shaydo
and 6 contributors

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.