MediaWiki
1.23.2
|
An interface for database load monitoring. More...
Public Member Functions | |
__construct ( $parent) | |
Construct a new LoadMonitor with a given LoadBalancer parent. More... | |
getLagTimes ( $serverIndexes, $wiki) | |
Return an estimate of replication lag 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 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.
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.