From 59d24ac726d6409068ca55a09f0f29170cd9ef23 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 29 Jan 2008 01:23:37 +0000 Subject: [PATCH] Apply live hack from Wikimedia code base: bump load balancer polling scaleback factor from 2 seconds to 30 seconds --- includes/LoadBalancer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1