MediaWiki REL1_28
|
Public Member Functions | |
__construct (ILoadBalancer $lb, BagOStuff $sCache, BagOStuff $cCache, array $options=[]) | |
Construct a new LoadMonitor with a given LoadBalancer parent. | |
clearCaches () | |
getLagTimes (array $serverIndexes, $domain) | |
Get an estimate of replication lag (in seconds) for each server. | |
scaleLoads (array &$loads, $domain) | |
Perform load ratio adjustment before deciding which server to use. | |
setLogger (LoggerInterface $logger) | |
Definition at line 23 of file LoadMonitorNull.php.
LoadMonitorNull::__construct | ( | ILoadBalancer | $lb, |
BagOStuff | $sCache, | ||
BagOStuff | $cCache, | ||
array | $options = [] |
||
) |
Construct a new LoadMonitor with a given LoadBalancer parent.
ILoadBalancer | $lb | LoadBalancer this instance serves |
BagOStuff | $sCache | Local server memory cache |
BagOStuff | $cCache | Local cluster memory cache |
array | $options | Options map |
Implements ILoadMonitor.
Definition at line 24 of file LoadMonitorNull.php.
LoadMonitorNull::clearCaches | ( | ) |
Definition at line 41 of file LoadMonitorNull.php.
LoadMonitorNull::getLagTimes | ( | array | $serverIndexes, |
$domain | |||
) |
Get an estimate of replication lag (in seconds) for each server.
Values may be "false" if replication is too broken to estimate
integer[] | $serverIndexes | |
string | $domain |
Implements ILoadMonitor.
Definition at line 37 of file LoadMonitorNull.php.
LoadMonitorNull::scaleLoads | ( | array & | $weightByServer, |
$domain | |||
) |
Perform load ratio adjustment before deciding which server to use.
int[] | &$weightByServer | Map of (server index => float weight) |
string | bool | $domain |
Implements ILoadMonitor.
Definition at line 33 of file LoadMonitorNull.php.
LoadMonitorNull::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 30 of file LoadMonitorNull.php.