MediaWiki REL1_40
ILoadMonitor.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
22use BagOStuff;
23use Psr\Log\LoggerAwareInterface;
26
32interface 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}
Class representing a cache/ephemeral data store.
Definition BagOStuff.php:85
Multi-datacenter aware caching interface.
Describes a Statsd aware interface.
This class is a delegate to ILBFactory for a given database cluster.
Database load monitoring interface.
getLagTimes(array $serverIndexes)
Get an estimate of replication lag (in seconds) for each server.
scaleLoads(array &$weightByServer)
Perform load ratio adjustment before deciding which server to use.
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options=[])
Construct a new LoadMonitor with a given LoadBalancer parent.