Archives

All posts for the month August, 2014

LVS (Load balancer) Error Fix : nanny[2687]: READ returned error 104:Connection reset by peer

Published August 6, 2014 by Siva

I have updated the centos 6.2 -> 6.5. After the My LVS(Linux Virtual server) load balancer throwing a below error in /var/log/messages/ frequently.
I have spent 2 days to resolve this issue. I would like to share this to everyone.

Aug 6 02:28:07 lb01 nanny[2687]: READ returned error 104:Connection reset by peer
Aug 6 02:28:07 lb01 nanny[2685]: READ returned error 104:Connection reset by peer
Aug 6 02:28:09 lb01 nanny[2686]: READ returned error 104:Connection reset by peer
Aug 6 02:28:12 lb01 nanny[2688]: READ returned error 104:Connection reset by peer
Aug 6 02:28:13 lb01 nanny[2687]: READ returned error 104:Connection reset by peer
Aug 6 02:28:13 lb01 nanny[2685]: READ returned error 104:Connection reset by peer
Aug 6 02:28:15 lb01 nanny[2686]: READ returned error 104:Connection reset by peer

Solution: 1) Simple check you hosts file.
Make sure the loopback entry in /etc/hosts.
127.0.0.1 localhost.localdomain localhost

2) Check both LB servers having same timezone.

Once verified, reload your config,

1) service ipvsadm reload
2) service pulse reload

Thank you.

Advertisements