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
When multiple (parallel) coverage requests are coming in the server returns error code 500 as it fails with
...
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: sorry, too many clients already
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Possibly multiple database connections are opened but not closed again or postgres restricts the number of connections per default too much for our use case.
The text was updated successfully, but these errors were encountered:
My suggestion would be to not necessarily require more connections to postgres (though that could also be increased), but to implement a queue where a client can be put on hold until a DB connection becomes available again without having to return a 500 error. Perhaps this could also be implemented higher up, maybe even above the pygeoapi provider level?
When multiple (parallel) coverage requests are coming in the server returns error code 500 as it fails with
Possibly multiple database connections are opened but not closed again or postgres restricts the number of connections per default too much for our use case.
The text was updated successfully, but these errors were encountered: