Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/32872e14d1afef0f6daefcc604bf28c3 to your computer and use it in GitHub Desktop.
Save velotiotech/32872e14d1afef0f6daefcc604bf28c3 to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set Primary Instance Service Definition
{
"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