命令:

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2022-01-12
  • 2021-04-07
  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-10-06
  • 2021-11-03
  • 2021-09-08
  • 2021-05-17
相关资源
相似解决方案