Manual:GetLagTimes.php
Appearance
| MediaWiki sürümü: | ≥ 1.9 |
| MediaWiki dosyası: getLagTimes.php | |
|---|---|
| Konum: | maintenance/ |
| Kaynak kodu: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Sınıflar: | GetLagTimes |
Ayrıntılar
getLagTimes.php dosyası, $wgLoadBalancer üzerinden çoğaltma gecikme sürelerini görüntülemek için bir bakım betiğidir.
Options/Arguments
| Option | Description | Required? |
|---|---|---|
| --report | Report the lag values to StatsD | İsteğe bağlı |
Usage
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 *
In MediaWiki version MediaWiki 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.Betik, bir kümenin durumunu izleyen basit bir 'lagtop' betiği oluşturmak için komut satırından tekrar tekrar çağrılabilir.
# simple shell script to run getLagTimes.php every five seconds
while [true]
do
php maintenance/run.php getLagTimes
sleep 5
done