NOTICE: 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 ).


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

accept rate: 0%

edited 09 Nov '17, 20:36

aseerel4c26's gravatar image

aseerel4c26 ♦

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

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 09 Nov '17, 18:18

question was seen: 3,627 times

last updated: 13 Nov '17, 22:41

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