Created
April 1, 2019 05:20
-
-
Save pranavcode/af84d55c15ebc1ba71077ae09d214e7c to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set Secondary 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-secondary", | |
"port": 27017, | |
"tags": [ | |
"nosql", | |
"database" | |
], | |
"check": { | |
"id": "mongo_secondary_status", | |
"name": "Mongo Secondary Status", | |
"args": ["/etc/consul.d/check_scripts/mongo_secondary_check.sh"], | |
"interval": "30s", | |
"timeout": "20s" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment