[osmosis-dev] Patch: ReplicationLagReader

Peter Körner osm-lists at mazdermind.de
Tue Jul 27 11:13:48 BST 2010


Am 27.07.2010 10:38, schrieb Kai Krueger:
> What a coincidence. I also wrote a munin plugin to monitor minutely-diff
> replication lags on Sunday, not knowing anything about your effort.
It was no big effort - one evening to learn about osmosis' task 
structure and to write the code and another evening to do all the 
required cleanups and comments.

The patch is in svn right now.

> It is simple shell script, that reads a local state.txt file of the
> rendering db and compares it to current time, (assuming that the system
> clock is correctly synchronized).
Yes I also used a shell-script:
<http://svn.toolserver.org/svnroot/mazder/diff-import/replag>

But in order to depoly it with osmosis I saw the need to include this 
functionality directly into osmosis.

> It would also be easy to include the state.txt on planet.osm.org too, to
> see how much of the lag comes from the local osm2pgsql import and how
> much of the lag comes from osmosis generating the diff files in the
> first place (which partly seems to be the bigger factor at the moment)
That's a nice idea! I'll extend the task and the munin plugin to print 
out the server lag as well, so they could be added on top of each other 
in the munin graph. You're showing the lag in minutes, I was using 
seconds now. What do you think is better for visualizing?

Peter




More information about the osmosis-dev mailing list