MediaWiki
REL1_19
|
Public Member Functions | |
__construct ($parent) | |
Construct a new LoadMonitor with a given LoadBalancer parent. | |
getLagTimes ($serverIndexes, $wiki) | |
postConnectionBackoff ($conn, $threshold) | |
Perform post-connection backoff. | |
scaleLoads (&$loads, $group=false, $wiki=false) | |
Perform pre-connection load ratio adjustment. |
Definition at line 59 of file LoadMonitor.php.
LoadMonitor_Null::__construct | ( | $ | parent | ) |
Construct a new LoadMonitor with a given LoadBalancer parent.
LoadBalancer | $parent |
Implements LoadMonitor.
Definition at line 60 of file LoadMonitor.php.
LoadMonitor_Null::getLagTimes | ( | $ | serverIndexes, |
$ | wiki | ||
) |
$serverIndexes | |
$wiki |
Implements LoadMonitor.
Definition at line 74 of file LoadMonitor.php.
LoadMonitor_Null::postConnectionBackoff | ( | $ | conn, |
$ | threshold | ||
) |
Perform post-connection backoff.
If the connection is in overload, this should return a backoff factor which will be used to control polling time. The number of threads connected is a good measure.
If there is no overload, zero can be returned.
A threshold thread count is given, the concrete class may compare this to the running thread count. The threshold may be false, which indicates that the sysadmin has not configured this feature.
$conn | DatabaseBase |
$threshold | Float |
Implements LoadMonitor.
Definition at line 66 of file LoadMonitor.php.
LoadMonitor_Null::scaleLoads | ( | &$ | loads, |
$ | group = false , |
||
$ | wiki = false |
||
) |
Perform pre-connection load ratio adjustment.
$loads | array |
$group | String: the selected query group |
$wiki | String |
Implements LoadMonitor.
Definition at line 63 of file LoadMonitor.php.