Docs HomeMongoDB Manual

sh.removeShardTag()

On this page本页内容

Definition定义

sh.removeShardTag(shard, tag)

Changed in version 3.4.3.4版更改。This method aliases to sh.removeShardFromZone() in MongoDB 3.4. 此方法别名为MongoDB 3.4中的sh.removeShardFromZone()The functionality specified below still applies to MongoDB 3.2. MongoDB 3.4 provides Zone sharding as the successor to tag-aware sharding.下面指定的功能仍然适用于MongoDB 3.2。MongoDB 3.4提供了区域分片作为标记感知分片的继承。

Removes the association between a tag and a shard. 删除标记和分片之间的关联。Only issue sh.removeShardTag() when connected to a mongos instance.仅在连接到mongos实例时发出sh.removeShardTag()

Parameter参数Type类型Description描述
shardstringThe name of the shard from which to remove a tag.要从中删除标记的分片的名称。
tagstringThe name of the tag to remove from the shard.要从分片中删除的标记的名称。
Tip

See also: 另请参阅:

sh.addShardTag() sh.addTagRange()