Asher has submitted this change and it was merged.

Change subject: Relax checks for translation memory Solr
......................................................................


Relax checks for translation memory Solr

Change-Id: I39d610cb24b2ebbdcfe0d361786a341115f10cc4
---
M manifests/role/solr.pp
1 file changed, 8 insertions(+), 5 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, but someone else must approve
  Asher: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/role/solr.pp b/manifests/role/solr.pp
index 3c04e49..07b5f1f 100644
--- a/manifests/role/solr.pp
+++ b/manifests/role/solr.pp
@@ -4,9 +4,11 @@
 #
 # == Parameters:
 #
-# $schema::             Schema file for Solr (only one schema per instance 
supported)
-# $replication_master:: Replication master, if this is current hostname, this 
server will be a master
-class role::solr($schema = undef, $replication_master = undef ) {
+# $schema::               Schema file for Solr (only one schema per instance 
supported)
+# $replication_master::   Replication master, if this is current hostname, 
this server will be a master
+# $average_request_time:: Average request time check threshold, the format is
+#                         "warning threshold:error threshold", or simply 
"error threshold"
+class role::solr($schema = undef, $replication_master = undef, 
$average_request_time = "400:600" ) {
        class { "::solr":
                schema => $schema,
                replication_master => $replication_master,
@@ -18,7 +20,7 @@
        }
        monitor_service { "Solr":
                description => "Solr",
-               check_command => "$check_command!400:600!5",
+               check_command => "$check_command!$average_request_time!5",
        }
 }
 
@@ -26,7 +28,8 @@
        system_role { "solr": description => "ttm solr backend" }
 
        class { "role::solr":
-               schema => "puppet:///modules/solr/schema-ttmserver.xml"
+               schema => "puppet:///modules/solr/schema-ttmserver.xml",
+               average_request_time => '1000:1500', # Translate uses fairly 
slow queries
        }
 }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/55036
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I39d610cb24b2ebbdcfe0d361786a341115f10cc4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: Asher <afeld...@wikimedia.org>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Pyoungmeister <p...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to