From b0fc0ba2d3b098ae7adc7e533643a0e315ad1142 Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Mon, 28 Oct 2024 10:19:48 -0400 Subject: [PATCH 1/4] DOCSP-44700-pre-split-chunks --- source/reference/api/start.txt | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/source/reference/api/start.txt b/source/reference/api/start.txt index 9a4a27142..aeb9576e4 100644 --- a/source/reference/api/start.txt +++ b/source/reference/api/start.txt @@ -362,23 +362,16 @@ If the ``start`` request is successful, ``mongosync`` enters the Pre-Split Chunks ~~~~~~~~~~~~~~~~ -.. versionadded:: 1.1 - -When ``mongosync`` syncs to a sharded cluster, it pre-splits chunks for -sharded collections on the destination cluster. This is supported in the -following configurations: - -* Sync from a replica set to a sharded cluster. - -* Sync between sharded clusters that differ in the number of shards. +When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks +for sharded collections on the destination cluster. For each sharded collection, +``mongosync`` creates twice as many chunks as there are shards in the +destination cluster. .. _c2c-shard-replica-sets: Shard Replica Sets ~~~~~~~~~~~~~~~~~~ -.. versionadded:: 1.1 - Sync from a replica set to a sharded cluster requires the ``sharding`` option. This option configures how ``mongosync`` shards collections. @@ -391,8 +384,6 @@ Collections that are not listed in this array replicate as unsharded. Supporting Indexes ~~~~~~~~~~~~~~~~~~ -.. versionadded:: 1.1 - ``mongosync`` syncs indexes from the source cluster to the destination cluster. But, when syncing from a replica set to a sharded cluster, ``mongosync`` may require an additional index to support the shard key, @@ -434,8 +425,6 @@ collections. Rename During Sync ~~~~~~~~~~~~~~~~~~ -.. versionadded:: 1.1 - Collections listed in the ``sharding.shardingEntries`` array when synced from a replica set to a sharded cluster become sharded collections on the destination cluster. From f814d63861e968bc9ba8f36ad02e3c6b6a89bc8e Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Mon, 28 Oct 2024 10:24:39 -0400 Subject: [PATCH 2/4] * --- source/reference/api/start.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/reference/api/start.txt b/source/reference/api/start.txt index aeb9576e4..bf6cf91ee 100644 --- a/source/reference/api/start.txt +++ b/source/reference/api/start.txt @@ -365,7 +365,11 @@ Pre-Split Chunks When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks for sharded collections on the destination cluster. For each sharded collection, ``mongosync`` creates twice as many chunks as there are shards in the -destination cluster. +destination cluster. This is supported in the following configurations: + +- Sync from a replica set to a sharded cluster. + +- Sync between sharded clusters. .. _c2c-shard-replica-sets: From 7b8bd6f6535f8dba606d81cfc6d02cba3cca493a Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Mon, 28 Oct 2024 13:50:59 -0400 Subject: [PATCH 3/4] nit --- source/reference/api/start.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/api/start.txt b/source/reference/api/start.txt index bf6cf91ee..52d06cd9c 100644 --- a/source/reference/api/start.txt +++ b/source/reference/api/start.txt @@ -365,7 +365,7 @@ Pre-Split Chunks When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks for sharded collections on the destination cluster. For each sharded collection, ``mongosync`` creates twice as many chunks as there are shards in the -destination cluster. This is supported in the following configurations: +destination cluster. The following configurations pre-split chunks: - Sync from a replica set to a sharded cluster. From 7b7ef3697c07ca9191e9bff1d18b9d4a0995eec9 Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Mon, 28 Oct 2024 14:08:47 -0400 Subject: [PATCH 4/4] ED feedback --- source/reference/api/start.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/reference/api/start.txt b/source/reference/api/start.txt index 52d06cd9c..f4f56b266 100644 --- a/source/reference/api/start.txt +++ b/source/reference/api/start.txt @@ -365,11 +365,7 @@ Pre-Split Chunks When ``mongosync`` syncs to a sharded destination cluster, it pre-splits chunks for sharded collections on the destination cluster. For each sharded collection, ``mongosync`` creates twice as many chunks as there are shards in the -destination cluster. The following configurations pre-split chunks: - -- Sync from a replica set to a sharded cluster. - -- Sync between sharded clusters. +destination cluster. .. _c2c-shard-replica-sets: