# many connection errors

**URL:** <https://forums.percona.com/t/many-connection-errors/3064>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [November 7, 2013, 7:10am UTC](https://forums.percona.com/t/many-connection-errors/3064 "2013-11-07T07:10:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashokkumar2003](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ashokkumar2003](https://forums.percona.com/u/ashokkumar2003)\
**Post date:** [November 7, 2013, 7:10am UTC](https://forums.percona.com/t/many-connection-errors/3064/1 "2013-11-07T07:10:43Z")

</div>

Team,

I have configured percona cluster under hardware load balancer and its working properly but some time its showing error " blocked because of many connection errors unblock with mysqladmin flush-hosts in percona"

Please give me permanent solution.

Thanks  
Ashok

---

<div class="post-metadata">

**Author:** ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)\
**Post date:** [November 7, 2013, 2:34pm UTC](https://forums.percona.com/t/many-connection-errors/3064/2 "2013-11-07T14:34:36Z")

</div>

Last time I saw this, it was caused by the load balancer “pinging” the MySQL server to check if it was alive, which resulted in what MySQL deemed a connection error each time, and eventually blocking the load balancer’s IP. So I would look into that and see if you can modify the way the load balancer is checking the health of the MySQL server.

---

<div class="post-metadata">

**Author:** ![ashokkumar2003](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ashokkumar2003](https://forums.percona.com/u/ashokkumar2003)\
**Post date:** [November 7, 2013, 11:02pm UTC](https://forums.percona.com/t/many-connection-errors/3064/3 "2013-11-07T23:02:12Z")

</div>

As you know health check is required in Load balacner. As you know if any servers down then how LB will determined to check back server normal.

Please help me any permanent solution.

Thanks  
Ashok

---

<div class="post-metadata">

**Author:** ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)\
**Post date:** [November 8, 2013, 12:14pm UTC](https://forums.percona.com/t/many-connection-errors/3064/4 "2013-11-08T12:14:43Z")

</div>

The issue is not with MySQL, it is just how your load balancer is checking the health, by attempting to “connect” to MySQL, instead of using MySQL’s actual “ping” functionality.

To get around this, you could set max\_connect\_errors to a larger number, which would prevent MySQL from blocking the load balancer. However that would apply to all connections, so it could cause issues with other things if you get flooded with connections.

Another alternative would be to run mysqladmin flush-hosts via a cron task, which would clear out the error count before the IP got blocked. But again that could cause issues if you get flooded with connection attempts from another source.

Outside of that, you’d have to modify the way your load balancer is checking MySQL health.

---

<div class="post-metadata">

**Author:** ![ashokkumar2003](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ashokkumar2003](https://forums.percona.com/u/ashokkumar2003)\
**Post date:** [November 10, 2013, 11:11pm UTC](https://forums.percona.com/t/many-connection-errors/3064/5 "2013-11-10T23:11:41Z")

</div>

Thanks a lot, I applied same thing on servers as cronjob and also change health check way to mysql servers.
