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

Public Member Functions | |
| __construct ($parent) | |
| Construct a new LoadMonitor with a given LoadBalancer parent. | |
| getLagTimes ($serverIndexes, $wiki) | |
| Return an estimate of replication lag for each server. | |
| scaleLoads (&$loads, $group=false, $wiki=false) | |
| Perform pre-connection load ratio adjustment. | |
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 LoadMonitorMySQL, and LoadMonitorNull.
| LoadMonitor::getLagTimes | ( | $ | serverIndexes, |
| $ | wiki | ||
| ) |
Return an estimate of replication lag for each server.
| array | $serverIndexes | |
| string | $wiki |
Implemented in LoadMonitorMySQL, and LoadMonitorNull.
| LoadMonitor::scaleLoads | ( | &$ | loads, |
| $ | group = false, |
||
| $ | wiki = false |
||
| ) |
Perform pre-connection load ratio adjustment.
| array | $loads | |
| string | bool | $group | The selected query group. Default: false |
| string | bool | $wiki | Default: false |
Implemented in LoadMonitorMySQL, and LoadMonitorNull.