[Openstack-operators] Too many connections

Kris G. Lindgren klindgren at godaddy.com
Mon May 30 15:33:49 UTC 2016

You are most likely running db pools with a number of worker processes.  If you look at the MySQL connections most of them will be idle.  If that's the case set the db pool timeout lower.  Lower the pool size down.  Each worker thread opens a connection pool to the database.  If you are running 10 workers with a min db pool size of 5 and a max of 10.  You will have a minimum number of 50 db connections, max 100, per server running that service.

I would be looking at: pool_timeout, min_pool_size, max_pool_size


On May 30, 2016, at 9:24 AM, Fran Barrera <franbarrera6 at gmail.com<mailto:franbarrera6 at gmail.com>> wrote:


I'm using Mitaka on ubuntu 16.04 and I have many problems in horizon. I can see this in the logs of all components: "OperationalError: (pymysql.err.OperationalError) (1040, u'Too many connections')" If I increase the max_connections on mysql works well a few minutes but the same error. Maybe Openstack don't close connections with Mysql. The version of Mysql is 5.7.

Any suggestions?

OpenStack-operators mailing list
OpenStack-operators at lists.openstack.org<mailto:OpenStack-operators at lists.openstack.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160530/ae2d2cb7/attachment.html>

More information about the OpenStack-operators mailing list