From: Aaron Schulz Date: Thu, 19 Jan 2017 00:27:17 +0000 (-0800) Subject: Add more $wgPoolCounterConf comments X-Git-Tag: 1.31.0-rc.0~4282^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=3b2adbcda30b25be42017c95620b6fa8292fef0b;p=lhc%2Fweb%2Fwiklou.git Add more $wgPoolCounterConf comments Change-Id: Ic7b376dcada2b58a2f2ddc13b79e392e9d4fae6f --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 566d4aa9ba..086b615e42 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -8231,7 +8231,19 @@ $wgRedirectOnLogin = null; * The remaining elements are passed through to the class as constructor * parameters. * - * @par Example: + * @par Example using local redis instance: + * @code + * $wgPoolCounterConf = [ 'ArticleView' => [ + * 'class' => 'PoolCounterRedis', + * 'timeout' => 15, // wait timeout in seconds + * 'workers' => 1, // maximum number of active threads in each pool + * 'maxqueue' => 5, // maximum number of total threads in each pool + * 'servers' => [ '127.0.0.1' ], + * 'redisConfig' => [] + * ] ]; + * @endcode + * + * @par Example using C daemon from https://www.mediawiki.org/wiki/Extension:PoolCounter: * @code * $wgPoolCounterConf = [ 'ArticleView' => [ * 'class' => 'PoolCounter_Client', @@ -8239,7 +8251,7 @@ $wgRedirectOnLogin = null; * 'workers' => 5, // maximum number of active threads in each pool * 'maxqueue' => 50, // maximum number of total threads in each pool * ... any extension-specific options... - * ]; + * ] ]; * @endcode */ $wgPoolCounterConf = null;