It is possible create a zone which covers the entire range of shard key values using minkey and maxkey to guarantee that MongoDB restricts all the data for a specific collection to the shard or shards in that zone.
Pls advise what values for minkey and maxkey should I use in order to create such an index.
Zone sharding is used to associate ranges of shard keys (or zones) with specific shards, so this feature generally does not make sense to use with hashed sharding or with all chunks assigned to a specific zone.
Can you provide some more information on the outcome you are trying to achieve?
There are 6 shards in our cluster but SHARD6 is designated for some specific data and we want to avoid ‘usual’ data appear there.
My idea is to add SHARD1 to SHARD5 to zone TEST and use this zone when sharding new collections.