MongoDB ReplicaSet Authentication Issue with Secondary
问题 We have a MongoDB (v 3.2.8) replicaSet with the following configuration: replication: replSetName: replica security: keyFile: mongo.key Our replicaSet status rs.status() currently looks like this: { "set" : "replica", "date" : ISODate("2016-11-11T15:43:29.164Z"), "myState" : 1, ... "members" : [ { "_id" : 4, "name" : "mongo_1:27017", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 155, ... "self" : true } { "_id" : 5, "name" : "mongo_2:27017", "health" : 1, "state" : 1,