MediaWiki master
|
Inherits Wikimedia\Rdbms\LoadMonitor.
Public Member Functions | |
getServerStates (array $serverIndexes) | |
Get a server gauge map for the specified servers. | |
![]() | |
__construct (ILoadBalancer $lb, BagOStuff $srvCache, WANObjectCache $wCache, array $options=[]) | |
getLagTimes (array $serverIndexes) | |
Get an estimate of replication lag (in seconds) for the specified servers. | |
movingAverage ( $priorValue, $gaugeValue, float $delay, float $movAveRatio) | |
Update a moving average for a gauge, accounting for the time delay since the last gauge. | |
scaleLoads (array &$weightByServer) | |
Perform load ratio adjustment before deciding which server to use. | |
setLogger (LoggerInterface $logger) | |
setMockTime (&$time) | |
setStatsdDataFactory (StatsdDataFactoryInterface $statsFactory) | |
Sets a StatsdDataFactory instance on the object. | |
Additional Inherited Members | |
![]() | |
const | STATE_AS_OF = 'time' |
const | STATE_GEN_DELAY = 'delay' |
const | STATE_LAG = 'lag' |
const | STATE_UP = 'up' |
![]() | |
computeServerState (int $i, ?array $priorState) | |
getCurrentTime () | |
getWeightScale (array $state) | |
isStateFresh ( $state, $now) | |
isStateRefreshDue ( $priorAsOf, $priorGenDelay, $referenceTTL, $now) | |
makeStateKey (IStoreKeyEncoder $cache, int $i) | |
newInitialServerState () | |
![]() | |
ILoadBalancer | $lb |
LoggerInterface | $logger |
BagOStuff | $srvCache |
StatsdDataFactoryInterface | $statsd |
WANObjectCache | $wanCache |
Definition at line 26 of file LoadMonitorNull.php.
Wikimedia\Rdbms\LoadMonitorNull::getServerStates | ( | array | $serverIndexes | ) |
Get a server gauge map for the specified servers.
int[] | $serverIndexes |
Reimplemented from Wikimedia\Rdbms\LoadMonitor.
Definition at line 27 of file LoadMonitorNull.php.