NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi ,

We run our own nominatim instance because we make heavy use for a custom gps system. ( 14 Million aprox requests per day, that is 10,000 clients requesting reverse geocoding every 1 minute ) , Could someone please point me to the reference documents or explain me how the connection buckets constants affect my rate limits etc . I want to have no limits on requests per second , per ip , etc. It seems that after a couple of hours the nominatim server stops working , but all the cpu , memory metrics etc are fine . We have even tried with super size configuration ( We run it on Amazon web services ).

Thanks

This are found in /settings/settings.php

 // Connection buckets to rate limit people being nasty
    @define('CONST_ConnectionBucket_MemcacheServerAddress', false);
    @define('CONST_ConnectionBucket_MemcacheServerPort', 11211);
    @define('CONST_ConnectionBucket_MaxBlockList', 100);
    @define('CONST_ConnectionBucket_LeakRate', 1);
    @define('CONST_ConnectionBucket_BlockLimit', 10);
    @define('CONST_ConnectionBucket_WaitLimit', 6);
    @define('CONST_ConnectionBucket_MaxSleeping', 10);
    @define('CONST_ConnectionBucket_Cost_Reverse', 1);
    @define('CONST_ConnectionBucket_Cost_Search', 2);
    @define('CONST_ConnectionBucket_Cost_Details', 3);
    @define('CONST_ConnectionBucket_Cost_Status', 1);

asked 09 Nov '17, 18:18

GUIMO's gravatar image

GUIMO
41115
accept rate: 0%

edited 09 Nov '17, 20:36

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


You need to provide a memcached server to enable rate limiting. If you have a line like this

@define('CONST_ConnectionBucket_MemcacheServerAddress', false);

then rate limiting is off (which is the default). Also note that the rate limiting code has been completely removed since Nominatim 3.0.

permanent link

answered 10 Nov '17, 08:16

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

It means that by default it is not applying any rate limit and my issue is somewhere else. Thanks for your knowledge

(13 Nov '17, 22:41) GUIMO

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×6
×4
×1
×1

question asked: 09 Nov '17, 18:18

question was seen: 3,907 times

last updated: 13 Nov '17, 22:41

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum