MediaWiki master
|
Inherits Wikimedia\Rdbms\LoadMonitor.
Public Member Functions | |||||||||||||||||||
scaleLoads (array &$weightByServer) | |||||||||||||||||||
Perform load ratio adjustment before deciding which server to use. | |||||||||||||||||||
![]() | |||||||||||||||||||
__construct (ILoadBalancer $lb, BagOStuff $srvCache, WANObjectCache $wCache, LoggerInterface $logger, StatsFactory $statsFactory, $options) | |||||||||||||||||||
Construct a new LoadMonitor with a given LoadBalancer parent.
| |||||||||||||||||||
setLogger (LoggerInterface $logger) | |||||||||||||||||||
setMockTime (&$time) | |||||||||||||||||||
Additional Inherited Members | |
![]() | |
const | STATE_AS_OF = 'time' |
const | STATE_CONN_COUNT = 'conn_count' |
const | STATE_UP = 'up' |
![]() | |
computeServerState (int $i, ?array $previousState) | |
getCurrentTime () | |
getServerStates (array $serverIndexes) | |
getStateFromWanCache ( $i, ?array $srvPrevState) | |
makeStateKey (IStoreKeyEncoder $cache, int $i) | |
newInitialServerState () | |
![]() | |
ILoadBalancer | $lb |
LoggerInterface | $logger |
BagOStuff | $srvCache |
StatsFactory | $statsFactory |
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.