Manual:GetLagTimes.php/ja

MediaWiki バージョン:
1.9
Category:MediaWiki code/ja#GetLagTimes.php

詳細

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

オプション/引数

オプション説明必須かどうか
--reportReport the lag values to StatsD省略可能

使用法

php maintenance/run.php getLagTimes [ --report ]
Terminal
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.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

関連項目

Category:Maintenance scripts/ja#GetLagTimes.php Category:Benchmarks/ja#GetLagTimes.php Category:Benchmark maintenance scripts/ja
Category:Benchmark maintenance scripts/ja Category:Benchmarks/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja