Manual:GetLagTimes.php/ja
MediaWiki バージョン: | ≧ 1.9 |
MediaWiki ファイル: getLagTimes.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.44.0 • 1.43.3 • 1.39.13 |
クラス: | GetLagTimes |
詳細
getLagTimes.php file is a maintenance script to display replication lag times from $wgLoadBalancer
.
オプション/引数
オプション | 説明 | 必須かどうか |
---|---|---|
--report | Report the lag values to StatsD | 省略可能 |
使用法
php maintenance/run.php getLagTimes [ --report ]
Terminal
$ php maintenance/run.php getLagTimes 10.0.0.236 db3.pmtpa.wmnet 0 10.0.0.237 db4.pmtpa.wmnet 8 ******** 10.0.0.102 samuel.pmtpa.wmnet 1 *
MediaWiki バージョン 1.39.13 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名
ではなく php maintenance/スクリプト名.php
を使用して実行する必要があります。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/run.php getLagTimes
sleep 5
done