Skip to content

Conversation

@amandasaurus
Copy link
Contributor

This patch allow the fetch_osc.sh script to take an optional argument which controls how long it will wait (in seconds) between download attempts. If not specified it will remain at 15 seconds.

The default of 15 is good if you are using the main OSM minutely diffs. However if you are using another service, like Geofabrik's country specific diffs, there is no point in querying that server every 15 seconds.

drolbr added a commit that referenced this pull request Mar 19, 2016
Optional ability to control how long fetch_osc waits between download attemps
@drolbr drolbr merged commit f821f64 into drolbr:master Mar 19, 2016
@Frankkkkk
Copy link

As per #343 :
I would suggest to increase the default sleep value as:

  • In the worst case scenario, the offset is of one diff
  • Servers are "quick enough" to process the diff in 40s: 1min - apply_time < 40s

@amandasaurus amandasaurus deleted the configurable-fetching-delay branch March 26, 2018 11:43
@amandasaurus
Copy link
Contributor Author

FYI
fd804d9
#483

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

Successfully merging this pull request may close these issues.

3 participants