[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/db/ -> LoadMonitor.php (summary)

Database load monitoring. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 155 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

LoadMonitor:: (3 methods):
  __construct()
  scaleLoads()
  getLagTimes()

LoadMonitorNull:: (3 methods):
  __construct()
  scaleLoads()
  getLagTimes()

LoadMonitorMySQL:: (3 methods):
  __construct()
  scaleLoads()
  getLagTimes()


Interface: LoadMonitor  - X-Ref

An interface for database load monitoring

__construct( $parent )   X-Ref
Construct a new LoadMonitor with a given LoadBalancer parent

param: LoadBalancer $parent

scaleLoads( &$loads, $group = false, $wiki = false )   X-Ref
Perform pre-connection load ratio adjustment.

param: array $loads
param: string|bool $group The selected query group. Default: false
param: string|bool $wiki Default: false

getLagTimes( $serverIndexes, $wiki )   X-Ref
Return an estimate of replication lag for each server

param: array $serverIndexes
param: string $wiki
return: array

Class: LoadMonitorNull  - X-Ref

__construct( $parent )   X-Ref
No description

scaleLoads( &$loads, $group = false, $wiki = false )   X-Ref
No description

getLagTimes( $serverIndexes, $wiki )   X-Ref
No description

Class: LoadMonitorMySQL  - X-Ref

Basic MySQL load monitor with no external dependencies
Uses memcached to cache the replication lag for a short time

__construct( $parent )   X-Ref
No description

scaleLoads( &$loads, $group = false, $wiki = false )   X-Ref
No description

getLagTimes( $serverIndexes, $wiki )   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1