Skip to content

Commit ce2b661

Browse files
committed
Sharding config: update per review
1 parent 8e0247d commit ce2b661

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/book/admin/vshard_admin.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ The example below shows how to grant the ``sharding`` role to the ``storage`` us
9494
:dedent:
9595

9696
The ``sharding`` role has different privileges depending on a replica set's :ref:`sharding role <vshard_config_sharding_roles>`.
97-
For replica sets with the ``storage`` role, the ``sharding`` role has the following privileges:
97+
For replica sets with the ``storage`` sharding role, the ``sharding`` credential role has the following privileges:
9898

9999
- All privileges provided by the ``replication`` role.
100100
- Executing :ref:`vshard.storage.* <vshard-vshard_storage>` functions.
101101

102-
If a replica set does not have the ``storage`` role, the ``sharding`` role does not have any privileges.
102+
If a replica set does not have the ``storage`` sharding role, the ``sharding`` credential role does not have any privileges.
103103

104104

105105
.. _vshard_config_sharding_roles:
@@ -171,8 +171,10 @@ On the other hand, an insufficient number of buckets can lead to decreased granu
171171
Replica set weights
172172
~~~~~~~~~~~~~~~~~~~
173173

174-
A replica set weight (:ref:`sharding.weight <configuration_reference_sharding_weight>`) defines the storage capacity of the replica set: the larger the weight, the more buckets the replica set can store.
175-
This can be used to store the prevailing amount of data on a replica set with more memory space.
174+
A replica set weight defines the storage capacity of the replica set: the larger the weight, the more buckets the replica set can store.
175+
You can configure a replica set weight using the :ref:`sharding.weight <configuration_reference_sharding_weight>` option.
176+
This option can be used to store the prevailing amount of data on a replica set with more memory space.
177+
You can also assign a zero weight to a replica set to initiate :ref:`migration of its buckets <vshard_config_rebalancing>` to the remaining cluster nodes.
176178

177179
In the example below, the ``storage-a`` replica set can store twice as much data as ``storage-b``:
178180

@@ -189,8 +191,6 @@ In the example below, the ``storage-a`` replica set can store twice as much data
189191
weight: 1
190192
# ...
191193
192-
Using the ``sharding.weight`` option, you can also assign a zero weight to a replica set to initiate :ref:`migration of its buckets <vshard_config_rebalancing>` to the remaining cluster nodes.
193-
194194
195195
.. _vshard_config_rebalancing:
196196

@@ -585,11 +585,10 @@ Master scheduled downtime
585585

586586
To perform a scheduled downtime of a replica set master, it is recommended to:
587587

588-
#. Update the configuration of the master and wait for the replicas to get into sync.
588+
#. Update the configuration to use another instance as a master.
589+
#. Reload the configuration on all the instances.
589590
All the requests then are forwarded to a new master.
590-
#. Switch another instance into the master mode.
591-
#. Update the configuration of all the nodes.
592-
#. Shut down the old master.
591+
# Shut down the old master.
593592

594593
.. _vshard-maintenance-replicaset_scheduled_downtime:
595594

@@ -599,6 +598,7 @@ Replica set scheduled downtime
599598
To perform a scheduled downtime of a replica set, it is recommended to:
600599

601600
#. Migrate all the buckets to the other cluster storages.
601+
You can do this by assigning a zero :ref:`weight <vshard-replica-set-weights>` to a replica set to initiate migration of its buckets to the remaining cluster nodes.
602602
#. Update the configuration of all the nodes.
603603
#. Shut down the replica set.
604604

0 commit comments

Comments
 (0)