admin管理员组文章数量:1388134
I'm trying to make use of the URI scheme mongodb+srv
for host discovery when our apps connect to MongoDB. With a service configuration file like this on each node I can resolve this via _mongos._tcp.service.TLD
just fine:
{
"service": {
"name": "mongos",
"tags": [
],
"port": 27017
}
}
However, we have multiple applications with dedicated MongoDB clusters, so they don't all share the same MongoS routers. Also, MongoDB insists on resolving the SRV
record for _mongodb._tcp.DOMAIN
, so I can't just use different service names to discern them between applications.
Any idea how to write that service definition to allow me creating a _mongodb._tcp.APP.service.TLD
kind of entry?
本文标签: mongodbSame service name in consul for multiple applicationsStack Overflow
版权声明:本文标题:mongodb - Same service name in consul for multiple applications - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744567119a2613116.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论