博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
区分连接是mongod 还是mongos 的方式 或者副本集
阅读量:4199 次
发布时间:2019-05-26

本文共 424 字,大约阅读时间需要 1 分钟。

Detect Connections to Instances

To detect if the MongoDB instance that your client is connectedto is , use the command. When aclient connects to a , returnsa document with a msg field that holds the stringisdbgrid. For example:

{   "ismaster" : true,   "msg" : "isdbgrid",   "maxBsonObjectSize" : 16777216,   "ok" : 1}
If the application is instead connected to a , thereturned document does not include the
isdbgrid string.

转载地址:http://hodli.baihongyu.com/

你可能感兴趣的文章
MFC 消息映射的工作方式
查看>>
MFC项目Unicode版本程序入口
查看>>
精典FormsAuthenticationTicket分析
查看>>
asp.net form验证
查看>>
VS2008中安装ASP.NET MVC2后无法新建工程的解决方法
查看>>
SQL Server 标识列
查看>>
SQL WITH TIES
查看>>
ASP.NET调用存储过程并接收存储过程返回值
查看>>
Debian: Driver 'pcspkr' is already registered, aborting
查看>>
Samba
查看>>
JavaScript原型和继承
查看>>
passdb backend = tdbsam
查看>>
Samba配置文件常用参数
查看>>
debian安装mongodb
查看>>
2020-10-20
查看>>
易购考拉The first day
查看>>
易购考拉 The second day
查看>>
易购考拉 On the third day
查看>>
易购考拉 The fourth day
查看>>
易购考拉 The fifth day
查看>>