Manual:getLagTimes.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.9
<translate> MediaWiki version:</translate>

詳細

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

オプション/引数

オプション 説明 必須かどうか
--report Report the lag values to StatsD <translate> Optional</translate>

使用法

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

関連項目