Skip to content

Instantly share code, notes, and snippets.

@pranavcode
Created April 1, 2019 05:20
Show Gist options
  • Save pranavcode/af84d55c15ebc1ba71077ae09d214e7c to your computer and use it in GitHub Desktop.
Save pranavcode/af84d55c15ebc1ba71077ae09d214e7c to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - MongoDB Replica Set Secondary Instance Service Definition
{
"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