Use Postgres connection pooling for Nominatim #570
Unanswered
shumailxyz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Duplicate of osm-search/Nominatim#3477 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did a fresh install of Nominatim 4.4 along with Postgis 15-3.4. Most of the things work fine as expected however one of my applications broke.
That application basically was doing around 500 reverse geocoding requests on
/reverse.php
concurrently. It was working fine with Nominatim 4.2 and Postgres 11 with Postgis 2.5 (was using the docker image mdillon/postgis).With the updated installation, around 100 (probably due to the default value of max_connections = 100 in postgresql.conf) out of 500 requests are successful and for the rest, nominatim returnes
500 internal server error
. I didn't find anything in Nominatim or apache2 logs but when Ichecked the Postgres logs, i saw these logs:Did something change in newer version in regards to how connection with Postgres is initialized? Should it be using single client to initiate the connection pool with Postgres and reuse connection? Would appreciate if someone has any pointers on how to approach this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions