Closed iAlex97 closed 10 months ago
Addition of New Environment Variables
New environment variables named NOMINATIM_QUERY_TIMEOUT and NOMINATIM_REQUEST_TIMEOUT have been introduced in the scripts 4.3/init.sh
and 4.3/start.sh
.
Commentary and Guidance for Query Types
Detailed commentary has been added in both 4.3/init.sh
and 4.3/start.sh
scripts explaining the use of --search-only
query type and also suggesting to revert back to the --reverse
query type when a new version of Nominatim is released.
Modification of Environment Variables
The newly added environment variables, NOMINATIM_QUERY_TIMEOUT and NOMINATIM_REQUEST_TIMEOUT, have been adjusted with new values in the 4.3/init.sh
and 4.3/start.sh
scripts.
Readiness Alert for Nominatim
Introduced a new comment "Nominatim is ready to accept requests" in the 4.3/start.sh
script which signifies that the Nominatim application is fully prepared to accept and process incoming requests.
Nominatim 4.3 introduced a new mechanism for setting query timeouts https://github.com/osm-search/Nominatim/pull/3172
For a large import like planet, this resulted in timeouts while running the warmup queries:
To overcome this, I am temporarily setting the query timeout to 600 seconds while running the warmup command and revert back to 10 seconds after it completes.
A further improvement idea would be to create different env variables for those timeouts (something like
DOCKER_NOMINATIM_QUERY_TIMEOUT
instead ofNOMINATIM_QUERY_TIMEOUT
) to allow users to specify different timeouts for their use-cases.Fixes #478