MediaWiki  REL1_22
LoadMonitor_MySQL Class Reference

Basic MySQL load monitor with no external dependencies Uses memcached to cache the replication lag for a short time. More...

Inheritance diagram for LoadMonitor_MySQL:
Collaboration diagram for LoadMonitor_MySQL:

List of all members.

Public Member Functions

 __construct ($parent)
 getLagTimes ($serverIndexes, $wiki)
 postConnectionBackoff ($conn, $threshold)
 scaleLoads (&$loads, $group=false, $wiki=false)

Public Attributes

LoadBalancer $parent

Detailed Description

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.


Constructor & Destructor Documentation

Parameters:
LoadBalancer$parent

Implements LoadMonitor.

Definition at line 109 of file LoadMonitor.php.


Member Function Documentation

LoadMonitor_MySQL::getLagTimes ( serverIndexes,
wiki 
)
Parameters:
$serverIndexes
$wiki
Returns:
array

Implements LoadMonitor.

Definition at line 126 of file LoadMonitor.php.

LoadMonitor_MySQL::postConnectionBackoff ( conn,
threshold 
)
Parameters:
$connDatabaseBase
$threshold
Returns:
int

Implements LoadMonitor.

Definition at line 196 of file LoadMonitor.php.

LoadMonitor_MySQL::scaleLoads ( &$  loads,
group = false,
wiki = false 
)
Parameters:
$loads
$groupbool
$wikibool

Implements LoadMonitor.

Definition at line 118 of file LoadMonitor.php.


Member Data Documentation

LoadBalancer LoadMonitor_MySQL::$parent

Definition at line 104 of file LoadMonitor.php.


The documentation for this class was generated from the following file: