Mobrovac has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/329476 )

Change subject: Scap: Depool and repool Mathoid during restarts
......................................................................

Scap: Depool and repool Mathoid during restarts

Bug: T144602
Change-Id: I2ff8a2f17117c102a44862a5be6ee403ab868e6c
---
M scap/checks.yaml
A scap/environments/beta/checks.yaml
M scap/scap.cfg
3 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mathoid/deploy 
refs/changes/76/329476/1

diff --git a/scap/checks.yaml b/scap/checks.yaml
index c6fce37..9d4e526 100644
--- a/scap/checks.yaml
+++ b/scap/checks.yaml
@@ -3,3 +3,11 @@
     type: nrpe
     stage: restart_service
     command: check_endpoints_mathoid
+  depool:
+    type: command
+    stage: promote
+    command: depool-mathoid
+  repool:
+    type: command
+    stage: restart_service
+    command: pool-mathoid
diff --git a/scap/environments/beta/checks.yaml 
b/scap/environments/beta/checks.yaml
new file mode 100644
index 0000000..f6fc106
--- /dev/null
+++ b/scap/environments/beta/checks.yaml
@@ -0,0 +1,3 @@
+checks:
+  depool: {}
+  repool: {}
diff --git a/scap/scap.cfg b/scap/scap.cfg
index 3ce993a..1452976 100644
--- a/scap/scap.cfg
+++ b/scap/scap.cfg
@@ -6,6 +6,7 @@
 server_groups: canary, default
 canary_dsh_targets: canary-targets
 dsh_targets: targets
+group_size: 2
 git_submodules: True
 service_name: mathoid
 service_port: 10042
@@ -16,6 +17,7 @@
 git_server: tin.eqiad.wmnet
 
 [deployment-prep.eqiad.wmflabs]
+environment: beta
 git_server: deployment-tin.deployment-prep.eqiad.wmflabs
 server_groups: default
 dsh_targets: betacluster

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ff8a2f17117c102a44862a5be6ee403ab868e6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid/deploy
Gerrit-Branch: master
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>

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

Reply via email to