

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Atlas Live Migration Service
<a name="live-migration"></a>

[Atlas Live Migration Service](https://www.mongodb.com/cloud/atlas/migrate) 會從來源資料庫 （僅限 MongoDB 資料庫） 啟動資料的初始複本、監控任何後續變更，並確保同步處理，直到切換到 MongoDB Atlas 為止。在此過程中，應用程式可以在來源資料庫上維護其正常的讀取和寫入操作。當您準備好執行切換時，應用程式中的連線字串會從來源資料庫更新至 Atlas 叢集，以完成遷移。

典型的遷移工作流程包含下列步驟：

**步驟 1. 準備**
+ 評估目前的 MongoDB 資料大小和工作負載。如需說明，請參閱 MongoDB 文件中的[識別應用程式工作負載](https://www.mongodb.com/docs/manual/data-modeling/schema-design-process/identify-workload/)。
+ 決定 Atlas 叢集的大小 AWS。
+ 準備遷移和切換計劃。

**步驟 2. 部署**
+ 根據您在步驟 1 中決定的大小，在 上 AWS 為 MongoDB Atlas 叢集設定新的環境。
+ 設定網路存取。如需說明，請參閱 MongoDB 文件中的[設定 IP 存取清單項目](https://www.mongodb.com/docs/atlas/security/ip-access-list/#configure-ip-access-list-entries)。
+ 設定目的地叢集的安全性。如需說明，請參閱 MongoDB 文件中的[設定叢集的安全功能](https://www.mongodb.com/docs/atlas/setup-cluster-security/#configure-security-features-for-clusters)。

**步驟 3. 遷移**
+ 在 Atlas Live Migration Service 中設定來源和目的地。
+ 執行遷移。
+ 切換至 MongoDB Atlas on AWS。

如需此遷移選項的詳細資訊，請參閱[將自我託管的 MongoDB 環境遷移至 MongoDB Atlas AWS。](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/migrate-a-self-hosted-mongodb-environment-to-mongodb-atlas-on-the-aws-cloud.html)

**對於 MongoDB 6.0.8 及更新版本**

如果您的來源和目的地叢集都執行 MongoDB 6.0.8 或更新版本，您可以使用引導式即時遷移選項 （提取或推送），將資料從來源叢集遷移至 Atlas MongoDB 叢集：
+ [即時遷移 (pull)](https://docs.atlas.mongodb.com/import/live-import/)
+ [即時遷移 （推送）](https://www.mongodb.com/docs/atlas/import/c2c-push-live-migration/)

**適用於舊版 MongoDB **

若要遷移 6.0.8 之前的 MongoDB 版本，請使用 [MongoDB 文件](https://www.mongodb.com/docs/atlas/import/#earlier-mongodb-versions--live-migrate-to-atlas)中所討論的其中一個遷移策略。