MediaWiki
REL1_22
|
Basic MySQL load monitor with no external dependencies Uses memcached to cache the replication lag for a short time. More...
Public Member Functions | |
__construct ($parent) | |
getLagTimes ($serverIndexes, $wiki) | |
postConnectionBackoff ($conn, $threshold) | |
scaleLoads (&$loads, $group=false, $wiki=false) | |
Public Attributes | |
LoadBalancer | $parent |
Basic MySQL load monitor with no external dependencies Uses memcached to cache the replication lag for a short time.
Definition at line 100 of file LoadMonitor.php.
LoadMonitor_MySQL::__construct | ( | $ | parent | ) |
LoadBalancer | $parent |
Implements LoadMonitor.
Definition at line 109 of file LoadMonitor.php.
LoadMonitor_MySQL::getLagTimes | ( | $ | serverIndexes, |
$ | wiki | ||
) |
$serverIndexes | |
$wiki |
Implements LoadMonitor.
Definition at line 126 of file LoadMonitor.php.
LoadMonitor_MySQL::postConnectionBackoff | ( | $ | conn, |
$ | threshold | ||
) |
$conn | DatabaseBase |
$threshold |
Implements LoadMonitor.
Definition at line 196 of file LoadMonitor.php.
LoadMonitor_MySQL::scaleLoads | ( | &$ | loads, |
$ | group = false , |
||
$ | wiki = false |
||
) |
$loads | |
$group | bool |
$wiki | bool |
Implements LoadMonitor.
Definition at line 118 of file LoadMonitor.php.
LoadBalancer LoadMonitor_MySQL::$parent |
Definition at line 104 of file LoadMonitor.php.