简体   繁体   English

从AWS Aurora迁移到本地Postgres 9.6数据库

[英]Migration from AWS Aurora to a local Postgres 9.6 database

I am considering using AWS Aurora, however I am concerned for being locked into AWS indefinitely. 我正在考虑使用AWS Aurora,但是我担心会被无限期地锁定到AWS中。 So I am wondering how difficult it would be to transfer data from Aurora to my own Postgres database. 因此,我想知道将数据从Aurora传输到我自己的Postgres数据库会有多困难。 Thanks! 谢谢!

This is a very valid concern. 这是一个非常有效的担忧。 Firstly, there is no seamless migration like there is from Postgres to Aurora. 首先,没有从Postgres到Aurora的无缝迁移。 Following, needs to be considered: 以下,需要考虑:

  1. How to do it: You will have to take a dump of your aurora db and then import it into postgres. 操作方法:您必须转储您的aurora数据库,然后将其导入postgres。

  2. Because of 1 above; 由于上述1; you cannot have concurrent CURD operations running on your aurora during migration. 迁移期间,您不能在Aurora上同时运行CURD操作。 Hence, you need to shut down all products connecting to your aurora till you migrate to Postgres. 因此,您需要关闭所有连接到Aurora的产品,直到迁移到Postgres。 Hence, there will be downtime. 因此,将会有停机时间。

  3. Because of 2 ; 因为2; Depending on size of your DB; 取决于数据库的大小; it might take few mins ( few GB of data ) to many hours if you have huge DB. 如果您拥有庞大的数据库,则可能要花费几分钟(几GB的数据)到几个小时。

Hence, you need to consider how much data you have and how much downtime you can live with if you want to migrate back to Postgres. 因此,如果要迁移回Postgres,则需要考虑拥有多少数据以及可以承受多少停机时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM