From: Brion Vibber Date: Tue, 29 Jan 2008 01:23:37 +0000 (+0000) Subject: Apply live hack from Wikimedia code base: bump load balancer polling scaleback factor... X-Git-Tag: 1.31.0-rc.0~49730 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=59d24ac726d6409068ca55a09f0f29170cd9ef23;p=lhc%2Fweb%2Fwiklou.git Apply live hack from Wikimedia code base: bump load balancer polling scaleback factor from 2 seconds to 30 seconds --- diff --git a/includes/LoadBalancer.php b/includes/LoadBalancer.php index 34f83d0e77..185c6d35f9 100644 --- a/includes/LoadBalancer.php +++ b/includes/LoadBalancer.php @@ -20,7 +20,7 @@ class LoadBalancer { * Scale polling time so that under overload conditions, the database server * receives a SHOW STATUS query at an average interval of this many microseconds */ - const AVG_STATUS_POLL = 2000; + const AVG_STATUS_POLL = 30000; function __construct( $servers, $failFunction = false, $waitTimeout = 10, $waitForMasterNow = false ) {