MediaWiki
REL1_40
ILoadMonitor.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use
BagOStuff
;
23
use Psr\Log\LoggerAwareInterface;
24
use
StatsdAwareInterface
;
25
use
WANObjectCache
;
26
32
interface
ILoadMonitor
extends
LoggerAwareInterface,
StatsdAwareInterface
{
41
public
function
__construct
(
42
ILoadBalancer
$lb,
BagOStuff
$sCache,
WANObjectCache
$wCache, array $options = []
43
);
44
50
public
function
scaleLoads
( array &$weightByServer );
51
60
public
function
getLagTimes
( array $serverIndexes );
61
}
BagOStuff
Class representing a cache/ephemeral data store.
Definition
BagOStuff.php:85
WANObjectCache
Multi-datacenter aware caching interface.
Definition
WANObjectCache.php:130
StatsdAwareInterface
Describes a Statsd aware interface.
Definition
StatsdAwareInterface.php:13
Wikimedia\Rdbms\ILoadBalancer
This class is a delegate to ILBFactory for a given database cluster.
Definition
ILoadBalancer.php:113
Wikimedia\Rdbms\ILoadMonitor
Database load monitoring interface.
Definition
ILoadMonitor.php:32
Wikimedia\Rdbms\ILoadMonitor\getLagTimes
getLagTimes(array $serverIndexes)
Get an estimate of replication lag (in seconds) for each server.
Wikimedia\Rdbms\ILoadMonitor\scaleLoads
scaleLoads(array &$weightByServer)
Perform load ratio adjustment before deciding which server to use.
Wikimedia\Rdbms\ILoadMonitor\__construct
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options=[])
Construct a new LoadMonitor with a given LoadBalancer parent.
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
loadmonitor
ILoadMonitor.php
Generated on Thu Jun 27 2024 14:03:17 for MediaWiki by
1.10.0