MediaWiki
REL1_39
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
51
public
function
scaleLoads
( array &$weightByServer, $domain );
52
62
public
function
getLagTimes
( array $serverIndexes, $domain );
63
}
BagOStuff
Class representing a cache/ephemeral data store.
Definition
BagOStuff.php:85
WANObjectCache
Multi-datacenter aware caching interface.
Definition
WANObjectCache.php:132
StatsdAwareInterface
Describes a Statsd aware interface.
Definition
StatsdAwareInterface.php:13
Wikimedia\Rdbms\ILoadBalancer
Create and track the database connections and transactions for a given database cluster.
Definition
ILoadBalancer.php:77
Wikimedia\Rdbms\ILoadMonitor
Database load monitoring interface.
Definition
ILoadMonitor.php:32
Wikimedia\Rdbms\ILoadMonitor\__construct
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options=[])
Construct a new LoadMonitor with a given LoadBalancer parent.
Wikimedia\Rdbms\ILoadMonitor\scaleLoads
scaleLoads(array &$weightByServer, $domain)
Perform load ratio adjustment before deciding which server to use.
Wikimedia\Rdbms\ILoadMonitor\getLagTimes
getLagTimes(array $serverIndexes, $domain)
Get an estimate of replication lag (in seconds) for each server.
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
loadmonitor
ILoadMonitor.php
Generated on Tue Oct 8 2024 07:23:15 for MediaWiki by
1.10.0