mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
improve update interval computation
Don't do anything if a downloaded diff is empty after all (may be happening when an empty diff was published upstream). Correctly compute the waiting interval before checking for new data. As the interval is now computed based on the date of the newest object in the database, the configured intervals need to be adjusted slightly to take into account the time it takes for the server to publish a diff.
This commit is contained in:
@@ -69,11 +69,18 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
|
||||
@define('CONST_Tablespace_Aux_Data', false);
|
||||
@define('CONST_Tablespace_Aux_Index', false);
|
||||
|
||||
// Replication settings
|
||||
//// Replication settings
|
||||
|
||||
// Base URL of replication service
|
||||
@define('CONST_Replication_Url', 'http://planet.openstreetmap.org/replication/minute');
|
||||
@define('CONST_Replication_Max_Diff_size', '30'); // MB of update data to download per batch
|
||||
@define('CONST_Replication_Update_Interval', '60'); // How often upstream publishes diffs
|
||||
@define('CONST_Replication_Recheck_Interval', '60'); // How long to sleep if no update found yet
|
||||
|
||||
// Maximum size in MB of data to download per batch
|
||||
@define('CONST_Replication_Max_Diff_size', '30');
|
||||
// How long until the service publishes the next diff
|
||||
// (relative to the age of data in the diff).
|
||||
@define('CONST_Replication_Update_Interval', '75');
|
||||
// How long to sleep when no update could be found
|
||||
@define('CONST_Replication_Recheck_Interval', '60');
|
||||
|
||||
// Website settings
|
||||
@define('CONST_NoAccessControl', true);
|
||||
|
||||
Reference in New Issue
Block a user