Skip to content

Use Postgres connection pooling for Nominatim. Resolve "too many clients already" error. #3477

Answered by mtmail
shumailxyz asked this question in Q&A
Discussion options

You must be logged in to vote

Nominatim starting version 4.3 has two options for the frontend: PHP and Python. You can see them documented at https://nominatim.org/release-docs/latest/admin/ . PHP will be removed in future versions.

You asked a question in the media docker repository so I'm guessing you use their docker image. That still uses PHP.

NOMINATIM_API_POOL_SIZE is configurable (https://nominatim.org/release-docs/latest/customize/Settings/#nominatim_api_pool_size) for the Python frontend. I haven't looked closely at tuning the parameter, so far increasing the max_connections in Postgres worked well enough for me.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shumailxyz
Comment options

@mtmail
Comment options

Answer selected by shumailxyz
@shumailxyz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants