Hi Mark
Are there any notable event in the MongoDB logs during that period (errors, etc.)? Also, do those messages also appear when using an older version of MongoDB? (3.4.0 was just released on Nov 29, 2016). Those messages don’t appear to be generated by MongoDB.
Otherwise, the DEBUG
log level seems to be the most verbose available in Rails (from Log Levels). If you’re certain that they’re erroneous messages generated by Rails, you may be able to change the log level to a higher setting to filter out the DEBUG
messages.
Best regards,
Kevin
def handle(previous, updated)
publish_sdam_event(
Monitoring::SERVER_DESCRIPTION_CHANGED,
Monitoring::Event::ServerDescriptionChanged.new(
updated.address,
cluster.topology,
previous,
updated
)
)
cluster.add_hosts(updated)
cluster.remove_hosts(updated)
end
Create the directories for the relevant databases
In separate terminal windows run all the following commands
We now need to let the master replica set server know about the other servers
Open the mongo shell to administer the routing server (mongos)
mongo localhost:7200/admin
Run the following commands:
c = { "_id" : "local", "members" : [ { "_id" : 1, "host" : "localhost:7200"}, { "_id" : 2, "host" : "localhost:7201"}, { "_id" : 3, "host" : "localhost:7202"} ] }db.runCommand({'replSetInitiate' : c})