Maximum database connections exceeded

2015-03-20 Thread Hans Kristian Flaatten
My Django application is exceeding the maximum number of simultaneous database connections (100) to the Postgres database when running through Gunicorn with async eventlet workers. When the limit it exceeded it starts returning 500-errors until new connections can be established. Setting `CONN_M

Re: Maximum database connections exceeded

2015-03-20 Thread Andreas Kuhne
Hi Hans, I know this isn't really solving your issue, but it can remove a symptom. I have successfully used pgBouncer to pool the connections, so that connections aren't handled by django directly, but you connect to a connection pool, so that it can create and reuse connections more efficiently.