Manual:GetLagTimes.php

MediaWiki version:
1.9

Details

getLagTimes.php file is a maintenance script to display replication lag times from $wgLoadBalancer .

Options/Arguments

Option Description Required?
--report Report the lag values to StatsD Optional

Usage

php maintenance/getLagTimes.php [ --report ]
Terminal

The script can be repeatedly called from the command line to create a simple 'lagtop' script that monitors a cluster's status.

# simple shell script to run getLagTimes.php every five seconds
while [true]
do
    php maintenance/getLagTimes.php
    sleep 5
done

See also