MediaWiki master
ILoadMonitor.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
22use BagOStuff;
23use Psr\Log\LoggerAwareInterface;
26
33interface 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}
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.
scaleLoads(array &$weightByServer)
Perform load ratio adjustment before deciding which server to use.
__construct(ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, $options)
Construct a new LoadMonitor with a given LoadBalancer parent.