This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Rate Limits for heavy usage Nominatim custom instance

2

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


One Answer:

3

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.

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