<span>副本集的replSetGetConfig监控</span>

 

命令:

# rs.conf();

# db.runCommand( { replSetGetConfig: 1 } );

glc-test:PRIMARY> db.runCommand({replSetGetConfig:1}).config.members
[
{
"_id" : 0,
"host" : "c3-dba-glc-db03.bj:28042",
"arbiterOnly" : false,
"buildIndexes" : true,
"hidden" : false,
"priority" : 1,
"tags" : {

},
"slaveDelay" : NumberLong(0),
"votes" : 1
},
{
"_id" : 1,
"host" : "c4-mc-buffer-db41.bj:28042",
"arbiterOnly" : false,
"buildIndexes" : true,
"hidden" : false,
"priority" : 1,
"tags" : {

},
"slaveDelay" : NumberLong(0),
"votes" : 1
},
{
"_id" : 2,
"host" : "c4-using-glc-db05.bj:28042",
"arbiterOnly" : false,
"buildIndexes" : true,
"hidden" : false,
"priority" : 1,
"tags" : {

},
"slaveDelay" : NumberLong(0),
"votes" : 1
}
]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#######################################################################################

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务