Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change reverse Geocoding concurrency to comply with Nominatim terms of use #352

Closed
vwvierhundertzwoelf opened this issue Oct 24, 2024 · 1 comment

Comments

@vwvierhundertzwoelf
Copy link

vwvierhundertzwoelf commented Oct 24, 2024

Describe the bug
When i start reverse geocoding, BACKGROUND_PROCESSING_CONCURRENCY tasks will be active with geocoding in sidekiq.
But in the Nominatim user policy it is only allowed to use the api once per second (Ref: https://operations.osmfoundation.org/policies/nominatim/)
This is resulting in a tempban and a lot of failed jobs as well as too much workload.
The only efficient way to get geocoding completed is to limit the BACKGROUND_PROCESSING_CONCURRENCY to 1 and after the bulk geocoding of an import is successfully reverse geocoded increase the number again.

Version
0.15.8

To Reproduce
Steps to reproduce the behavior:

  1. Start reverse Geocoding
  2. Goto sidekiq
  3. See a lot of ECONNREFUSED

Expected behavior
Perform only one request per second to Nominatim, when using the official server.

Screenshots
image

@vwvierhundertzwoelf vwvierhundertzwoelf changed the title Change Geocoding concurrency to comply with Nominatim terms of usw Change reverse Geocoding concurrency to comply with Nominatim terms of usw Oct 24, 2024
@vwvierhundertzwoelf vwvierhundertzwoelf changed the title Change reverse Geocoding concurrency to comply with Nominatim terms of usw Change reverse Geocoding concurrency to comply with Nominatim terms of use Oct 25, 2024
@Freika
Copy link
Owner

Freika commented Nov 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants