Created
April 1, 2019 05:15
-
-
Save pranavcode/7b56fd9305afe34c1805c34aaa41582f to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set Primary Instance Service Definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"service": { | |
"name": "mongo-primary", | |
"port": 27017, | |
"tags": [ | |
"nosql", | |
"database" | |
], | |
"check": { | |
"id": "mongo_primary_status", | |
"name": "Mongo Primary Status", | |
"args": ["/etc/consul.d/check_scripts/mongo_primary_check.sh"], | |
"interval": "30s", | |
"timeout": "20s" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment