Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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