Migrating MongoDB EC2 to AWS Document DB via DMS

0

Hi,

I just want to ask. I have legacy app that hosted on MongoDB EC2 instances. I want to migrate it to AWS DocumentDB for security & manageability reason.

The DEV DB used mongodb version 4.4 and I can migrate it easily with AWS DMS. The UAT DB & PRODUCTION DB use old version of mongodb 3.2.11 & 3.2.22. I don't think it's supported by AWS DMS as stated on AWS DMS documentation. Any other way rather than just dump it and restore to the new instance? PRODUCTION data is around 200+ GB, I don't think can use mongo dump & restore to it. haha.

Thank You.

已提問 1 年前檢視次數 531 次
2 個答案
4

There is no need to upgrade your MongoDB version, DMS supports MongoDB version 3.0+. The documentation at https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html merely states that support for MongoDB 4.2 and 4.4 was added in DMS version 3.4.5.

profile pictureAWS
Tim_C
已回答 1 年前
  • ya, but it strange since I can't connect to mongodb 3.2.xx from AWS DMS. Already reachable via AWS Reachability Analysis, BindIP -> I've setup it already. So I assume it because of wire protocol from mongodb version 3.2.xx.

  • MongoServerSelectionError: Server at xxxxxx:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6). I event can't connect from other server. :)

3

you'll need to consider alternative methods

  1. Upgrade your MongoDB instances to a supported version before using AWS DMS
  2. Perform a live migration using a custom script or tool Write a custom script or use a third-party tool (e.g., Apache Nifi, Talend, or custom-built solutions) to perform a live migration of the data from your MongoDB 3.2.x instances to AWS DocumentDB.
profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南