[OSM-dev] change replication and replication lag
Jochen Topf
jochen at remote.org
Wed Mar 10 09:29:02 UTC 2021
On Tue, Mar 09, 2021 at 10:51:03PM +0000, Tom Hughes via dev wrote:
> On 09/03/2021 22:27, Stephan Knauss wrote:
>
> > What are others using? switch2osm still refers to a mod_tile supplied
> > script using osmose.
>
> The production tile servers keep a copy of the most recent diff
> file and use osmium to extract a time from it with:
>
> osmium fileinfo --extended --get=data.timestamp.last
That has the advantage of definitly being correct, because it looks at
the actual data and not some state file which might or might not be
correct. But it does have the disadvantage of taking longer, because it
needs to read the whole planet file.
Maybe pyosmium-get-changes and pyosmium-up-to-date should have an option
"--show-lag" or "--show-last-timestamp" or something like that, that
would consult the state information those tools have stored somewhere and
display them to the user. This would have the advantage that the user
doesn't have to know where the state information is actually stored and
in what format. (On the other hand it might be overkill, though.)
Jochen
--
Jochen Topf jochen at remote.org https://www.jochentopf.com/ +49-351-31778688
More information about the dev
mailing list