BearND has uploaded a new change for review. https://gerrit.wikimedia.org/r/286690
Change subject: Add scap config ...................................................................... Add scap config Added NRPE and some simple HTTP 200 checks. Bug: T129147 Change-Id: I398ac38e091e865023e532af4469f51dd666b985 --- A scap/check_http_200.sh A scap/checks.yaml A scap/scap.cfg A scap/target-canary A scap/targets 5 files changed, 49 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps/deploy refs/changes/90/286690/1 diff --git a/scap/check_http_200.sh b/scap/check_http_200.sh new file mode 100755 index 0000000..9174a69 --- /dev/null +++ b/scap/check_http_200.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +curlit() { + if ! curl -sL -w "%{http_code}\\n" "$1" -o /dev/null | grep -q 200; then + exit 1 + fi +} + +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections/Main%20Page" +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections-lead/Denver" +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections-lead/Main%20Page" +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections-lead/San%20Francisco" +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections-remaining/Obama" +curlit "http://localhost:8888/en.wikipedia.org/v1/page/mobile-sections-remaining/Berlin" +curlit "http://localhost:8888/en.wiktionary.org/v1/page/definition/foo" diff --git a/scap/checks.yaml b/scap/checks.yaml new file mode 100644 index 0000000..b42b09b --- /dev/null +++ b/scap/checks.yaml @@ -0,0 +1,10 @@ +checks: + endpoints: + type: nrpe + stage: promote + command: check_endpoints_mobileapps + + http200: + type: command + stage: promote + command: check_http_200.sh diff --git a/scap/scap.cfg b/scap/scap.cfg new file mode 100644 index 0000000..6f7ebaa --- /dev/null +++ b/scap/scap.cfg @@ -0,0 +1,20 @@ +[global] +git_repo: mobileapps/deploy +git_deploy_dir: /srv/deployment +git_repo_user: deploy-service +ssh_user: deploy-service +server_groups: canary, default +canary_dsh_targets: target-canary +dsh_targets: targets +git_submodules: True +service_name: mobileapps +service_port: 8888 +lock_file: /tmp/scap.mobileapps.lock + +[wmnet] +git_server: tin.eqiad.wmnet + +[deployment-prep.eqiad.wmflabs] +git_server: deployment-tin.deployment-prep.eqiad.wmflabs +server_groups: default +dsh_targets: betacluster-targets diff --git a/scap/target-canary b/scap/target-canary new file mode 100644 index 0000000..49e9dd7 --- /dev/null +++ b/scap/target-canary @@ -0,0 +1 @@ +scb2001.codfw.wmnet diff --git a/scap/targets b/scap/targets new file mode 100644 index 0000000..c28d243 --- /dev/null +++ b/scap/targets @@ -0,0 +1,3 @@ +scb2002.codfw.wmnet +scb1001.eqiad.wmnet +scb1002.eqiad.wmnet -- To view, visit https://gerrit.wikimedia.org/r/286690 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I398ac38e091e865023e532af4469f51dd666b985 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/mobileapps/deploy Gerrit-Branch: master Gerrit-Owner: BearND <bsitzm...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits