script/healthchecker to postgresql
Failover and loadbalancer using keepalived (LVS) on two machines: bypass_ipvs.sh script
adds a nat rule when host is configured as slave and removes it when it goes to master
state so that requests intended to VIP are processed correctly even when they are
handled by the slave.

Ref: http://gcharriere.com/blog/?p=339