Hi Olivier,
Could you provide more information about what you are trying to achieve and where did you find a recommendation to set EnableWriteMajority=true?
Currently as of MongoDB 3.2.9, there is no such parameter for mongod
as EnableWriteMajority. You can set w : majority
as Write Concern on the client side, either in Mongo Shell or on a MongoDB Driver. Please keep in mind that different clients can use different write concerns as needed without changing configuration on mongod
, therefore, it’s a client operation parameter rather than a server parameter.
For example, using Mongo Shell, you could specify:
db.collection.insert( {a : 1}, {w : 'majority'} )
You can check the relevant MongoDB Driver Documentation. Here is an example from the Java Driver.
Regards,
Amar