Manual:GetLagTimes.php/pl

Wersja MediaWiki:
1.9
Category:MediaWiki code/pl#GetLagTimes.php

Szczegóły

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

Options/Arguments

OptionDescriptionRequired?
--reportReport the lag values to StatsDOptional

Usage

php maintenance/run.php getLagTimes [ --report ]
Terminal
In MediaWiki version 1.39.13 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

Zobacz też

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