Skip to content

Clarify when config servers are read-only during csrs upgrade #2563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions source/tutorial/upgrade-config-servers-to-replica-set.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ The following procedure upgrades three mirrored config servers to a
procedure, all the sharded cluter binaries must be at least version
3.2.4.

During this procedure there will be a period of time where
the config servers will be read-only. During this period, certain catalog
operations will fail if attempted. Operations that will
not be available include adding and dropping shards, creating and dropping
databases, creating and dropping sharded collections, and migrating chunks
(both manually and via the balancer process). Normal read and write
operations to existing collections will not be affected.

.. seealso:: :doc:`/tutorial/upgrade-config-servers-to-replica-set-downtime`

Prerequisites
Expand Down Expand Up @@ -210,6 +218,9 @@ Procedure
#. Shut down one of the other non-replica set config servers; i.e.
either the second and third config server listed in the
:setting:`~sharding.configDB` setting of the :program:`mongos`.
At this point the config servers will go read-only, meaning certain
operations - such as creating and dropping databases and sharded
collections - will not be available.

#. Reconfigure the replica set to allow all members to vote and have
default priority of ``1``.
Expand Down Expand Up @@ -264,6 +275,10 @@ Procedure

If the first config server uses the MMAPv1 storage engine, the
member will transition to ``"REMOVED"`` state.

At this point the config server data will return to being writeable and all
catalog operations - including creating and dropping databases and
sharded collections - will once again be possible.

#. Restart :program:`mongos` instances with updated :option:`--configdb` or
:setting:`sharding.configDB` setting.
Expand Down