Thcipriani has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/376159 )
Change subject: Scap: restart services only in active dc ...................................................................... Scap: restart services only in active dc Change to scap config that will restart both jobrunner and jobchron in the active datacenter only as part of deployment. Port 9005 will be checked to ensure it accepts local connections. Service restart and port checking will happen after the "promote" stage. Change-Id: Iecdb5f2726a02a9f058d23f0fbb94aa5cc2b7a2b Depends-On: I09ba869f9a914c76c161ba7d125b6afb5e0e6b91 Bug: T129148 --- M scap/scap.cfg 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/jobrunner refs/changes/59/376159/1 diff --git a/scap/scap.cfg b/scap/scap.cfg index d3f3e56..e1827f5 100644 --- a/scap/scap.cfg +++ b/scap/scap.cfg @@ -7,6 +7,12 @@ dsh_targets: jobrunner git_submodules: False +service_name: jobrunner,jobchron +service_port: 9005 + +# Don't restart service if LoadState=masked (inactive datacenter) +require_valid_service: True + # Divide servers into groups of 5 group_size: 5 -- To view, visit https://gerrit.wikimedia.org/r/376159 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iecdb5f2726a02a9f058d23f0fbb94aa5cc2b7a2b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/jobrunner Gerrit-Branch: master Gerrit-Owner: Thcipriani <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
