Manual:GetLagTimes.php

Tossed together a quick maintenance script to dump out detected replication lag times from $wgLoadBalancer...

This can be looped to make a stupid 'lagtop' script to monitor a cluster's status:

10.0.0.236     db3.pmtpa.wmnet   0 10.0.0.235     db2.pmtpa.wmnet   0 10.0.0.237     db4.pmtpa.wmnet   8 ******** 10.0.0.102  samuel.pmtpa.wmnet   1 * 10.0.0.232 thistle.pmtpa.wmnet   1 * 10.0.0.231    ixia.pmtpa.wmnet   1 * 10.0.0.233 lomaria.pmtpa.wmnet   1 * 10.0.0.101   adler.pmtpa.wmnet   0
 * enwiki cluster **

10.0.0.101   adler.pmtpa.wmnet   0 10.0.0.102  samuel.pmtpa.wmnet   0 10.0.0.232 thistle.pmtpa.wmnet   0 10.0.0.231    ixia.pmtpa.wmnet   0 10.0.0.234     db1.pmtpa.wmnet   0 10.0.0.233 lomaria.pmtpa.wmnet   0 10.0.0.24 holbach.pmtpa.wmnet   0
 * dewiki cluster **

ctrl+C to quit