MediaWiki
REL1_22
|
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 74 of file LoadMonitor.php.
LoadMonitor_Null::__construct | ( | $ | parent | ) |
Construct a new LoadMonitor with a given LoadBalancer parent.
LoadBalancer | $parent |
Implements LoadMonitor.
Definition at line 75 of file LoadMonitor.php.
LoadMonitor_Null::getLagTimes | ( | $ | serverIndexes, |
$ | wiki | ||
) |
$serverIndexes | |
$wiki |
Implements LoadMonitor.
Definition at line 89 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 81 of file LoadMonitor.php.
LoadMonitor_Null::scaleLoads | ( | &$ | loads, |
$ | group = false , |
||
$ | wiki = false |
||
) |
Perform pre-connection load ratio adjustment.
$loads | array | |
string | $group | the selected query group |
$wiki | String |
Implements LoadMonitor.
Definition at line 78 of file LoadMonitor.php.