Skip to content

Commit da90e1e

Browse files
authored
Update note (#134)
1 parent a155e4e commit da90e1e

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/atlasdeployment-custom-resource.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -743,13 +743,18 @@ examples, and the |api| documentation.
743743
- :manual:`Sharding </sharding>`
744744
- :ref:`server-number-costs`
745745

746-
.. note::
747-
748-
To ensure consistent data distribution, you can't increase the number
749-
of shards in the same update request when upgrading your {+cluster+}
750-
from a replica set to a sharded {+cluster+}. You can add additional shards
751-
when your {+cluster+} has upgraded and you've ensured all clients have
752-
reconnected to the MongoDB router.
746+
.. warning::
747+
748+
When you use a sharded cluster, MongoDB requires that your applications connect
749+
to a |mongos| instance to ensure that your applications interact with the shards
750+
and other components of the sharded cluster properly.
751+
If you migrate from a replica set to a sharded cluster, your
752+
applications must restart to enable the connection
753+
to the cluster's |mongos|. As a result, the Atlas Admin API
754+
prevents you from migrating a replica set directly to a sharded cluster
755+
with more than one shard. After you successfully migrate your replica set
756+
to a single shard cluster and reset your application connections,
757+
you can add additional shards to the cluster.
753758

754759
.. setting:: spec.deploymentSpec.replicationSpecs.regionConfigs
755760

0 commit comments

Comments
 (0)