My Django app recently started throwing "OperationalError: (1040, 'Too many connections')". I don't think a lot has changed in our volume and I haven't made a change to the application, so I'm not sure if there could be another cause for this? I've never gotten this before in an application that has been running for a couple years now. Our volume may have increased slightly so that's all I can think of.
Is there a way to increase this number? If so, how do I go about it?
asked Jul 06 '12 at 15:15
You can't increase max connections on our shared MySQL service - if you want or need that ability, then you'll need to build your own MySQL from source and run it as a custom app.
However, before you go down that road...
The error you saw was caused by high load, which was caused another customer on your server. When that happens, queries take longer, and available connections become exhausted.
We're working with that customer to resolve this issue, and have already made some progress. I believe that it is unlikely that you'll see this error in the coming days.
Hope that helps!
answered Jul 06 '12 at 18:37