阅读背景:

MongoDB:确定正在读取哪个辅助节点

来源:互联网 

Hey first time using mongo replica sets, and I've configured a set of 3 servers in Java. I'm trying to determine which secondary is being read from by my service (using secondary preferred). Does the mongo driver expose access to this info within Java? As I'm struggling to find a reliable way to track it. I'm also aware once a connection is made to a secondary it is unlikely to switch to read from the other secondary unless there is failure. Hey first time using mongo replica sets, and I'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: