Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12213

Clarify when and how to put replica set members into standalone mode for maintenance

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Per this comment on SERVER-38174, we should update the documentation around maintenance of replica sets to clarify a few points.

      1. Beginning in MongoDB 4.0, when restarting members of replica sets in standalone mode (without the --replset argument),
        1. The node will not provide read access to the most current data it possesses, but only to data that is no more recent that the majority commit point, unless
        2. the node is started with the recoverFromOplogAsStandalone flag, in which case the node will present all data it has accepted, but will not accept write operations.
      2. In all versions of MongoDB,
        1. performing write operations on replica set members running in standalone mode risks data corruption
        2. and only the following operations are endorsed, though even they may lead to corruption if not used carefully:
          1. Building indexes, with caveats around the danger of building unique indexes in this manner
          2. Manipulating the contents of the local database, with caveats around the risks of updating collections involved in the replication process

      Further, we should review any documentation we have that involves doing maintenance on replica set members in standalone mode to ensure they are correct, or can be safely performed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            1 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 5 weeks, 3 days ago