MySQL error - too many connections
Bug #1480698 reported by
Sean M. Collins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Roman Podoliaka | ||
oslo.db |
Invalid
|
Undecided
|
Unassigned |
Bug Description
2015-07-21 11:29:53.660 ERROR nova.api.ec2 [req-522a314d-
tags: | added: db gate network |
Changed in nova: | |
assignee: | nobody → Roman Podoliaka (rpodolyaka) |
Changed in oslo.db: | |
status: | New → Invalid |
To post a comment you must log in.
we see this in a lot of contexts downstream, and it turns out that based on load and such we do in fact need to raise the mysql_max_ connections limit. Nova spawns a lot of Python processes, and each one can use anywhere from 1- 15 connections, 5 of which are persistently pooled.
I'm hearing on IRC that we're seeing it on Neutron as well and that the incidence of both seems to correspond. Basically, the source of the connections needs to be understood. I'd recommend using netstat to help figure it out, here's a line I used to identify individual processes:
netstat -ntp | grep python | grep ESTABLISHED | grep 3306 | cut -c80-86 | sed 'sX/.*XX' | xargs -n1 ps -p | grep -v "CMD"