MongoDB & ElasticSearch configuration -
mongodb showing me error message when insert data in collection.
i trying configure elasticsearch mongodb, when realized replica. try add something, no results.
mongo shell shows me same message:
writresult({"writeerror":{"code":undefined,"errmsg":"not master"}})
this happens when not have 3 node replica set, , start replica in master-slave configuration , after master goes down or secondary goes down. since there not third node or arbiter elect new primary, primary steps down master , in pure read mode. way bring replica set create new server same repl-set name , add current stepped down master secondary it.
Comments
Post a Comment