重要
The feature described on this page is not currently supported on Atlas Infinite clusters during public preview. For the features supported in public preview, see Public Preview Availability.
ソースレプリカセットをシャーディングされた宛先クラスターにライブ移行することを選択できます。この場合は、次の例のように、ライブ移行Atlas UIでシャーディング構成を指定できます。
MongoDB shards only those collections that you include into the shardingEntries array. The array specifies which collections to shard. To learn more, see Sharding.
移行中にシャーディング構成を省略することを選択した場合、クラスターを Atlas に移行した後に、宛先クラスターでコレクションをシャードできます。
{ "shardingEntries": [ { "database": "database-name", "collection": "collection-name", "shardCollection": { "key": [ { "location": 1 }, { "region": 1 } ] } } ] }
この構成に加えて、Atlas 宛先クラスターには指定されたシャーディングキーと互換性のあるインデックスも必要です。 Atlas UI 経由で移行を開始するときに、MongoDB を構成してこれらのサポート インデックスを自動的に作成できます。
詳しくは以下を参照してください。