简体   繁体   English

从 AWS Aurora Serverless v1 升级到 v2 失败

[英]Upgrading from AWS Aurora Serverless v1 to v2 fails

So with Aurora Serverless v2 available we wanted to upgrade from our Postgres Serverless v1.因此,随着 Aurora Serverless v2 的推出,我们希望从 Postgres Serverless v1 升级。

The steps described are basically to take a snapshot, create a new Provisioned Aurora cluster (not Serverless) and then upgrade the Provisioned Cluster to Postgres 13.6 and after that Clone the new 13.6 Cluster into a Serverless v2.描述的步骤基本上是拍摄快照、创建新的预配置 Aurora 集群(不是无服务器),然后将预配置集群升级到 Postgres 13.6,然后将新的 13.6 集群克隆到无服务器 v2。

However, I get stuck on the last part as when trying to clone it I get "Serverless (incompatible minor version)" and the option to chose "Serverless" is greyed out...但是,我陷入了最后一部分,因为在尝试克隆它时我得到“无服务器(不兼容的次要版本)”并且选择“无服务器”的选项显示为灰色......

What am I missing?我错过了什么?

OK, so the information in the documentation here is very unclear: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.upgrade.html#aurora-serverless-v2.upgrade-from-serverless-v1-procedure好的,所以这里文档中的信息很不清楚: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.upgrade.html#aurora-serverless-v2.upgrade-from -无服务器-v1-程序

You shouldn't try to migrate the Cluster from Provisioned to Serverless, the option is to convert the DATABASE (Writer instance) in the Provisioned Cluster to Serverless V2!您不应该尝试将 Cluster 从 Provisioned 迁移到 Serverless,选项是将 Provisioned Cluster 中的 DATABASE(Writer 实例)转换为 Serverless V2!

So, here's the steps that might save someone else a few tries (and hours):因此,以下步骤可能会为其他人节省几次尝试(和几个小时):

  1. Create a Snapshot for the existing Aurora Serverless Cluster overview page (takes about 5 minutes (depending on DB size))为现有的 Aurora Serverless 集群概览页面创建快照(大约需要 5 分钟(取决于 DB 大小))
  2. Open snapshots and choose to restore Snapshot to highest available PROVISIONED Aurora Cluster (for me it was Postgres 10.20), no other settings needs to be changed other than "Provisioned" and the version (this will take several minutes, about 15 minutes)打开快照并选择将快照恢复到最高可用的 PROVISIONED Aurora 集群(对我来说是 Postgres 10.20),除了“Provisioned”和版本之外不需要更改其他设置(这需要几分钟,大约 15 分钟)
  3. Refresh now and again using the "refresh" button (as the AWS console "refresh" isn't very reliable) to see when the cluster is ready (database doesn't need to be ready, only the Cluster!)使用“刷新”按钮不时刷新(因为 AWS 控制台的“刷新”不是很可靠)以查看集群何时准备就绪(数据库不需要准备就绪,只需要集群就绪!)
  4. Once the Cluster is "available", open the Cluster and click "Modify"集群“可用”后,打开集群并单击“修改”
  5. Choose the DB engine version as 13.6 (this is the only version working for Aurora Serverless v2) then scroll down and click "Continue"选择数据库引擎版本 13.6(这是唯一适用于 Aurora Serverless v2 的版本),然后向下滚动并单击“继续”
  6. Select "Apply immediately" and click "Modify Cluster" Select“立即申请”点击“修改集群”
  7. Back on the Cluster overview page, again wait for the Cluster to upgrade (this will take several minutes, about 20 minutes)回到Cluster overview页面,再次等待Cluster升级(这需要几分钟,大概20分钟左右)
  8. Once the Cluster and database are available, select the DATABASE and choose "Modify"一旦集群和数据库可用,select 数据库并选择“修改”
  9. Select Serverless v2 and then "Continue" Select Serverless v2 然后“继续”
  10. Choose to apply Immediately and modify the database选择立即应用并修改数据库
  11. Wait for it to modify completely and you'll have your new Serverless V2 done!等待它完全修改,您将完成新的 Serverless V2!

Another thing to note is that with Aurora V2 we'll apparently have a Cluster and a database attached:另一件需要注意的事情是,对于 Aurora V2,我们显然会附加一个集群和一个数据库: 在此处输入图像描述

I'd assume this is because with Serverless V2 (which is pretty cool.) you can attach additional read replica databases which will "off-load" your writer instance making it faster...我假设这是因为使用无服务器 V2(非常酷),您可以附加额外的只读副本数据库,这将“卸载”您的编写器实例,使其更快......

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

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