MediaWiki master
Wikimedia\Rdbms\LoadMonitorNull Class Reference

Inherits Wikimedia\Rdbms\LoadMonitor.

Collaboration diagram for Wikimedia\Rdbms\LoadMonitorNull:

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.
Parameters
ILoadBalancer$lbLoadBalancer this instance serves
BagOStuff$sCacheLocal server memory cache
WANObjectCache$wCacheLocal cluster memory cache
array$optionsAdditional parameters include:
  • maxConnCount: maximum number of connections before logging a warning [default: 500]

 
 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
 

Detailed Description

Definition at line 26 of file LoadMonitorNull.php.

Member Function Documentation

◆ scaleLoads()

Wikimedia\Rdbms\LoadMonitorNull::scaleLoads ( array & $weightByServer)

Perform load ratio adjustment before deciding which server to use.

Parameters
int[]&$weightByServerMap of (server index => float weight)

Reimplemented from Wikimedia\Rdbms\LoadMonitor.

Definition at line 27 of file LoadMonitorNull.php.


The documentation for this class was generated from the following file: