summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_commands.idl
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2022-06-23 14:55:08 +0000
committerDavis Haupt <davis.haupt@mongodb.com>2022-06-23 14:55:08 +0000
commit0d2029091f28a5e7e6c5fc225937dabf197cdd8b (patch)
treeb7a8866d3dfc859d0d047331e36ed61e9dcc7346 /src/mongo/s/commands/cluster_commands.idl
parent88d665074f679e024d729f8f0f62eebf2a00bab6 (diff)
parent57e39f6e07a7aee960f98c4f57c575ff6a203934 (diff)
downloadmongo-0d2029091f28a5e7e6c5fc225937dabf197cdd8b.tar.gz
Merge remote-tracking branch 'origin/master' into davish/SERVER-63099
Diffstat (limited to 'src/mongo/s/commands/cluster_commands.idl')
-rw-r--r--src/mongo/s/commands/cluster_commands.idl49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_commands.idl b/src/mongo/s/commands/cluster_commands.idl
index 26d5ad8760c..bc5edc8c7a4 100644
--- a/src/mongo/s/commands/cluster_commands.idl
+++ b/src/mongo/s/commands/cluster_commands.idl
@@ -107,3 +107,52 @@ commands:
description: "The shard key value that is within a chunk's boundaries.
Cannot be used on collections with hashed shard keys."
optional: true
+
+ moveChunk:
+ description : "The public moveChunk command on mongos."
+ command_name : moveChunk
+ command_alias: movechunk
+ cpp_name: ClusterMoveChunkRequest
+ strict: false
+ namespace: type
+ api_version: ""
+ type: namespacestring
+ fields:
+ bounds:
+ type: array<object>
+ description: "The bounds of a specific chunk to move. The array must consist of two documents that specify the lower and upper shard key values of a chunk to move. Specify either the bounds field or the find field but not both."
+ optional: true
+ find:
+ type: object
+ description: "An equality match on the shard key that specifies the shard-key value of the chunk to move. Specify either the bounds field or the find field but not both."
+ optional: true
+ to:
+ type: string
+ description: "The name of the destination shard for the chunk."
+
+ forceJumbo:
+ type: bool
+ description: "Specifies whether or not forcing jumbo chunks move"
+ default: false
+
+ writeConcern:
+ type: object_owned
+ description: "A document that expresses the write concern that the _secondaryThrottle will use to wait for secondaries during the chunk migration."
+ default: BSONObj()
+
+ # Secondary throttle can be specified by passing one of the following 2 parameters
+ secondaryThrottle:
+ type: optionalBool
+ description: "Secondary throttle policy to adopt during the migration"
+ _secondaryThrottle:
+ type: optionalBool
+ description: "Secondary throttle policy to adopt during the migration"
+
+ # Wait for delete can be specified with one of the following 2 parameters
+ waitForDelete:
+ type: optionalBool
+ description: "Internal option for testing purposes. The default is false. If set to true, the delete phase of a moveChunk operation blocks."
+ _waitForDelete:
+ type: optionalBool
+ description: "Internal option for testing purposes. The default is false. If set to true, the delete phase of a moveChunk operation blocks."
+