Before patching Windows server, do we need to shut down any DB or stop DB service.

If we need to shutdown a MongoDB on a node(Windows server) which is part of a replica set, what we need to before patching windows server..


1 Answer 1


To upgrade a replicaset, please follow MongoDB upgrade process. Here's a quick summary:

  • upgrade all secondary nodes - if necessary check if everything's working properly
  • stepDown and upgrade the primary node
  • set the setFeatureCompatibilityVersion to the version matching your upgrade

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.