MediaWiki
master
ILoadMonitor.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
22
use Psr\Log\LoggerAwareInterface;
23
use
Wikimedia\ObjectCache\BagOStuff
;
24
use
Wikimedia\ObjectCache\WANObjectCache
;
25
use
Wikimedia\Stats\StatsdAwareInterface
;
26
33
interface
ILoadMonitor
extends
LoggerAwareInterface,
StatsdAwareInterface
{
34
public
const
STATE_UP
=
'up'
;
35
public
const
STATE_CONN_COUNT
=
'conn_count'
;
36
public
const
STATE_AS_OF
=
'time'
;
37
47
public
function
__construct
(
ILoadBalancer
$lb,
BagOStuff
$sCache,
WANObjectCache
$wCache, $options );
48
54
public
function
scaleLoads
( array &$weightByServer );
55
}
Wikimedia\ObjectCache\BagOStuff
Abstract class for any ephemeral data store.
Definition
BagOStuff.php:89
Wikimedia\ObjectCache\WANObjectCache
Multi-datacenter aware caching interface.
Definition
WANObjectCache.php:169
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:33
Wikimedia\Rdbms\ILoadMonitor\STATE_UP
const STATE_UP
Definition
ILoadMonitor.php:34
Wikimedia\Rdbms\ILoadMonitor\scaleLoads
scaleLoads(array &$weightByServer)
Perform load ratio adjustment before deciding which server to use.
Wikimedia\Rdbms\ILoadMonitor\STATE_AS_OF
const STATE_AS_OF
Definition
ILoadMonitor.php:36
Wikimedia\Rdbms\ILoadMonitor\__construct
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, $options)
Construct a new LoadMonitor with a given LoadBalancer parent.
Wikimedia\Rdbms\ILoadMonitor\STATE_CONN_COUNT
const STATE_CONN_COUNT
Definition
ILoadMonitor.php:35
Wikimedia\Stats\StatsdAwareInterface
Describes a Statsd aware interface.
Definition
StatsdAwareInterface.php:15
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
loadmonitor
ILoadMonitor.php
Generated on Sun Oct 13 2024 07:24:20 for MediaWiki by
1.10.0