Jump to content

Manual:GetLagTimes.php/ko

From mediawiki.org
This page is a translated version of the page Manual:GetLagTimes.php and the translation is 36% complete.
미디어위키 버전:
1.9

상세

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

옵션/인수

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


사용법

php maintenance/run.php getLagTimes [ --report ]
Terminal
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

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

같이 보기