|
MediaWiki
master
|
An interface for database load monitoring. More...

Public Member Functions | |
| __construct ($parent) | |
| Construct a new LoadMonitor with a given LoadBalancer parent. More... | |
| clearCaches () | |
| Clear any process and persistent cache of lag times. More... | |
| getLagTimes ($serverIndexes, $wiki) | |
| Get an estimate of replication lag (in seconds) for each server. More... | |
| scaleLoads (&$loads, $group=false, $wiki=false) | |
| Perform pre-connection load ratio adjustment. More... | |
An interface for database load monitoring.
Definition at line 29 of file LoadMonitor.php.
| LoadMonitor::__construct | ( | $parent | ) |
Construct a new LoadMonitor with a given LoadBalancer parent.
| LoadBalancer | $parent |
Implemented in LoadMonitorNull, and LoadMonitorMySQL.
| LoadMonitor::clearCaches | ( | ) |
Clear any process and persistent cache of lag times.
Implemented in LoadMonitorMySQL, and LoadMonitorNull.
| LoadMonitor::getLagTimes | ( | $serverIndexes, | |
| $wiki | |||
| ) |
Get an estimate of replication lag (in seconds) for each server.
Values may be "false" if replication is too broken to estimate
| array | $serverIndexes | |
| string | $wiki |
Implemented in LoadMonitorNull, and LoadMonitorMySQL.
Perform pre-connection load ratio adjustment.
| array | &$loads | |
| string | bool | $group | The selected query group. Default: false |
| string | bool | $wiki | Default: false |
Implemented in LoadMonitorNull, and LoadMonitorMySQL.