MediaWiki
REL1_19
|
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 | |
$parent |
Basic MySQL load monitor with no external dependencies Uses memcached to cache the replication lag for a short time.
Definition at line 85 of file LoadMonitor.php.
LoadMonitor_MySQL::__construct | ( | $ | parent | ) |
LoadBalancer | $parent |
Implements LoadMonitor.
Definition at line 95 of file LoadMonitor.php.
References $parent.
LoadMonitor_MySQL::getLagTimes | ( | $ | serverIndexes, |
$ | wiki | ||
) |
$serverIndexes | |
$wiki |
Implements LoadMonitor.
Definition at line 112 of file LoadMonitor.php.
References $wgMemc, wfGetMainCache(), wfIncrStats(), wfMemcKey(), wfProfileIn(), and wfProfileOut().
LoadMonitor_MySQL::postConnectionBackoff | ( | $ | conn, |
$ | threshold | ||
) |
$conn | DatabaseBase |
$threshold |
Implements LoadMonitor.
Definition at line 173 of file LoadMonitor.php.
References wfLogDBError().
LoadMonitor_MySQL::scaleLoads | ( | &$ | loads, |
$ | group = false , |
||
$ | wiki = false |
||
) |
$loads | |
$group | bool |
$wiki | bool |
Implements LoadMonitor.
Definition at line 104 of file LoadMonitor.php.
LoadMonitor_MySQL::$parent |
Definition at line 90 of file LoadMonitor.php.
Referenced by __construct().