$collection->insert_one({....}, { writeConcern => MongoDB::WriteConcern->new( { w => 'majority', j => 1, wtimeout => 10000, } } );