diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2020-05-28 09:32:31 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-28 16:01:41 +0000 |
commit | 48169d0013d5a065fcc922f0de8e8347554a6136 (patch) | |
tree | 9da0cfe96098e4250112e2caaf6b7d4431589c5b /src/mongo/db/repl/README.md | |
parent | 02e3ec83c7e92adff03beda4def39bb33f1cd02d (diff) | |
download | mongo-48169d0013d5a065fcc922f0de8e8347554a6136.tar.gz |
SERVER-48216 Update architechture guide for quiesce mode
Diffstat (limited to 'src/mongo/db/repl/README.md')
-rw-r--r-- | src/mongo/db/repl/README.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/README.md b/src/mongo/db/repl/README.md index e1a689e65cb..9afd1b33166 100644 --- a/src/mongo/db/repl/README.md +++ b/src/mongo/db/repl/README.md @@ -221,7 +221,10 @@ The external state also manages and owns all of the replication threads. The `TopologyCoordinator` is in charge of maintaining state about the topology of the cluster. On significant changes (anything that affects the response to isMaster), the TopologyCoordinator updates -its TopologyVersion. The [`isMaster`](https://github.com/mongodb/mongo/blob/r4.3.3/src/mongo/db/repl/replication_info.cpp#L258) command awaits changes in the TopologyVersion before returning. +its TopologyVersion. The [`isMaster`](https://github.com/mongodb/mongo/blob/r4.3.3/src/mongo/db/repl/replication_info.cpp#L258) command awaits changes in the TopologyVersion before returning. On +shutdown, if the server is a secondary, it enters quiesce mode: we increment the TopologyVersion and +start responding to `isMaster` commands with a `ShutdownInProgress` error, so that clients cease +routing new operations to the node. The `TopologyCoordinator` is non-blocking and does a large amount of a node's decision making surrounding replication. Most replication command requests and responses are filled in here. |