jenkins-bot has submitted this change and it was merged.
Change subject: Add role to install and use pool counter
......................................................................
Add role to install and use pool counter
Configures article views to go through the pool counter.
Change-Id: Iddb676d05fa6af88c85a08f0b8f66978f2fb8f5a
---
A puppet/modules/role/manifests/poolcounter.pp
1 file changed, 26 insertions(+), 0 deletions(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/puppet/modules/role/manifests/poolcounter.pp
b/puppet/modules/role/manifests/poolcounter.pp
new file mode 100644
index 0000000..9cfad61
--- /dev/null
+++ b/puppet/modules/role/manifests/poolcounter.pp
@@ -0,0 +1,26 @@
+# == Class: role::poolcounter
+#
+# Installs pool counter service and configures wikis to use it for article
+# views.
+#
+class role::poolcounter {
+ require_package('poolcounter')
+
+ service { 'poolcounter':
+ ensure => 'running',
+ require => Package['poolcounter'],
+ }
+
+ mediawiki::extension { 'PoolCounter':
+ priority => $LOAD_EARLY,
+ settings => [
+ '$wgPoolCountClientConf["servers"][] = "127.0.0.1";',
+ '$wgPoolCountClientConf["timeout"] = 0.5;',
+ '$wgPoolCounterConf["ArticleView"]["class"] =
"PoolCounter_Client";',
+ '$wgPoolCounterConf["ArticleView"]["timeout"] = 15;',
+ '$wgPoolCounterConf["ArticleView"]["workers"] = 2;',
+ '$wgPoolCounterConf["ArticleView"]["maxqueue"] = 100;',
+ ],
+ require => Service['poolcounter'],
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/176957
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iddb676d05fa6af88c85a08f0b8f66978f2fb8f5a
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits