副本集的replSetGetConfig监控

 

命令:

# 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
}
]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

posted @ 2020-11-13 16:50  igoodful  阅读(297)  评论(0编辑  收藏  举报