查看“︁Aurora PG13 to PG14 Migration”︁的源代码
←
Aurora PG13 to PG14 Migration
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=parameter compare= == cluster parameter compare== <pre> 导出生产 PG13 参数,可先 dev env aws rds describe-db-cluster-parameters \ --db-cluster-parameter-group-name <your-prod-pg13-param-group> \ --query 'Parameters[*].{Name:ParameterName, Value:ParameterValue, Source:Source}' \ --output text > pg13_params.txt 导出测试环境 PG14 参数 aws rds describe-db-cluster-parameters \ --db-cluster-parameter-group-name my-aurora-pg14-cluster-params \ --query 'Parameters[*].{Name:ParameterName, Value:ParameterValue, Source:Source}' \ --output text > pg14_params.txt 输出格式示例 autovacuum on engine-default log_connections on user ← 这条是你们自定义的 max_connections NONE engine-default shared_buffers NONE engine-default </pre> == instance parameter compare== <pre> </pre> <pre> 直接获取 AWS 官方 RDS PG14 默认全部参数(不需要任何权限) aws ssm get-parameters-by-path --path /aws/rds/parameter/postgres14/ --region ap-east-1 --no-sign-request --output json > pg14-default-parameters.json </pre> =回滚方案= <pre> aws cli for windows aws rds restore-db-cluster-from-snapshot ^ --db-cluster-identifier mynewdbcluster ^ --snapshot-identifier mydbclustersnapshot ^ --engine aurora-mysql|aurora-postgresql for linux aws rds restore-db-cluster-from-snapshot \ --db-cluster-identifier mynewdbcluster \ --snapshot-identifier mydbclustersnapshot \ --engine aurora-mysql|aurora-postgresql 能从快照恢复: RDS → 快照 → 选中升级前的快照 恢复为新实例(或覆盖原实例) 恢复后版本回到 PG13 aws cli aws rds restore-db-instance-from-db-snapshot \ --db-instance-identifier YOUR_DB_NAME_RESTORE \ --db-snapshot-identifier before-pg14-upgrade \ --region ap-east-1 步骤 1:停止业务连接(避免写入 PG14) 步骤 2:从 before-pg14-upgrade 快照恢复实例 (note pick the snapshot you manually took) 控制台操作: RDS → 快照 选中升级前的快照 恢复为新实例(或覆盖原实例) CLI 回滚命令(你直接用) aws rds restore-db-instance-from-db-snapshot \ --db-instance-identifier 你的实例ID \ --db-snapshot-identifier before-pg14-upgrade \ --region ap-east-1 步骤 3:恢复完成后 → 版本回到 PG13 恢复出来的实例 完全是 PG13数据、配置、参数全部回到升级前状态。 </pre> https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-restore-snapshot.html https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.PostgreSQL.html [[category:AWS]]
返回
Aurora PG13 to PG14 Migration
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
我的导航
关于我
shell
python
ops
linuxchina.net
blog.linuxchina
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息