MediaWiki master
|
Inherits Wikimedia\Rdbms\LoadMonitor.
Public Member Functions | |||||||||||||
scaleLoads (array &$weightByServer) | |||||||||||||
Perform load ratio adjustment before deciding which server to use. | |||||||||||||
Public Member Functions inherited from Wikimedia\Rdbms\LoadMonitor | |||||||||||||
__construct (ILoadBalancer $lb, BagOStuff $srvCache, WANObjectCache $wCache, $options) | |||||||||||||
Construct a new LoadMonitor with a given LoadBalancer parent.
| |||||||||||||
setLogger (LoggerInterface $logger) | |||||||||||||
setMockTime (&$time) | |||||||||||||
setStatsdDataFactory (StatsdDataFactoryInterface $statsFactory) | |||||||||||||
Sets a StatsdDataFactory instance on the object. | |||||||||||||
Additional Inherited Members | |
Public Attributes inherited from Wikimedia\Rdbms\ILoadMonitor | |
const | STATE_AS_OF = 'time' |
const | STATE_CONN_COUNT = 'conn_count' |
const | STATE_UP = 'up' |
Protected Member Functions inherited from Wikimedia\Rdbms\LoadMonitor | |
computeServerState (int $i, ?array $previousState) | |
getCurrentTime () | |
getServerStates (array $serverIndexes) | |
getStateFromWanCache ( $i, ?array $srvPrevState) | |
makeStateKey (IStoreKeyEncoder $cache, int $i) | |
newInitialServerState () | |
Protected Attributes inherited from Wikimedia\Rdbms\LoadMonitor | |
ILoadBalancer | $lb |
LoggerInterface | $logger |
BagOStuff | $srvCache |
StatsdDataFactoryInterface | $statsd |
WANObjectCache | $wanCache |
Definition at line 26 of file LoadMonitorNull.php.
Wikimedia\Rdbms\LoadMonitorNull::scaleLoads | ( | array & | $weightByServer | ) |
Perform load ratio adjustment before deciding which server to use.
array<int,int|float> | &$weightByServer Map of (server index => weight) |
Reimplemented from Wikimedia\Rdbms\LoadMonitor.
Definition at line 27 of file LoadMonitorNull.php.