You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lib works fine at startup, but after a few map movments, I get the following error :
sorry, too many clients already
server/node_modules/tilesplash/lib/index.js:236:50
When I check the max_connections of my pg database, it is set to 100. I tried to reduce the poolSize of db to 20 or so, but it does not seem to be taken into account. If I wait a little (like 30 seconds or so), the connections are terminated and the server is able to make some calls again, but then after a few moves the error pops back. If I kill and restart the server, it seems to clear the queue.
Did this happened to anyone ?
The text was updated successfully, but these errors were encountered:
Currently, a pg pool was created for each request : this is bad, as each pool keeps a connection to the db so it can reuse it. This caused issue faradayio#36 for me.
By following the example here : https://github.com/brianc/node-postgres/tree/v6.4.1 the pool must be created only once, and reused across requests (that's the purpose of a pool).
The lib works fine at startup, but after a few map movments, I get the following error :
When I check the max_connections of my pg database, it is set to 100. I tried to reduce the poolSize of db to 20 or so, but it does not seem to be taken into account. If I wait a little (like 30 seconds or so), the connections are terminated and the server is able to make some calls again, but then after a few moves the error pops back. If I kill and restart the server, it seems to clear the queue.
Did this happened to anyone ?
The text was updated successfully, but these errors were encountered: