MediaWiki  1.23.2
LoadMonitor Interface Reference

An interface for database load monitoring. More...

Inheritance diagram for LoadMonitor:

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...
 

Detailed Description

An interface for database load monitoring.

Definition at line 29 of file LoadMonitor.php.

Constructor & Destructor Documentation

◆ __construct()

LoadMonitor::__construct (   $parent)

Construct a new LoadMonitor with a given LoadBalancer parent.

Parameters
LoadBalancer$parent

Implemented in LoadMonitorMySQL, and LoadMonitorNull.

Member Function Documentation

◆ getLagTimes()

LoadMonitor::getLagTimes (   $serverIndexes,
  $wiki 
)

Return an estimate of replication lag for each server.

Parameters
array$serverIndexes
string$wiki
Returns
array

Implemented in LoadMonitorMySQL, and LoadMonitorNull.

◆ scaleLoads()

LoadMonitor::scaleLoads ( $loads,
  $group = false,
  $wiki = false 
)

Perform pre-connection load ratio adjustment.

Parameters
array$loads
string | bool$groupThe selected query group. Default: false
string | bool$wikiDefault: false

Implemented in LoadMonitorMySQL, and LoadMonitorNull.


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