MediaWiki REL1_39
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
51 public function scaleLoads( array &$weightByServer, $domain );
52
62 public function getLagTimes( array $serverIndexes, $domain );
63}
Class representing a cache/ephemeral data store.
Definition BagOStuff.php:85
Multi-datacenter aware caching interface.
Describes a Statsd aware interface.
Create and track the database connections and transactions for a given database cluster.
Database load monitoring interface.
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options=[])
Construct a new LoadMonitor with a given LoadBalancer parent.
scaleLoads(array &$weightByServer, $domain)
Perform load ratio adjustment before deciding which server to use.
getLagTimes(array $serverIndexes, $domain)
Get an estimate of replication lag (in seconds) for each server.