Created
June 17, 2020 05:17
-
-
Save velotiotech/32872e14d1afef0f6daefcc604bf28c3 to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set Primary Instance Service Definition
This file contains 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