Changing "primary" replication database

0

Im trying to follow this guide https://workmarket.tech/zero-downtime-maintenances-on-mysql-rds-ba13b51103c2 , for *active*-*active* replication.

But on command CHANGE *active* TO *active*_HOST=.... i get error: ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER or REPLICATION_*secondary*_ADMIN privilege(s) for this operation

As i understood AWS forbids this kind of access via command line access. So, how do i then do this change? i assume via parameters group... but how?

*active* = some non inclusive word

*secondary* = some other non inclusive word

已提问 1 年前234 查看次数
2 回答
0
已接受的回答

So, the "active-active" replication worked, there is just a some things that needs to be configured. As far as i understood those values in parameter groups of RDS DB must be configured:

auto_increment_increment
auto_increment_offset
log_bin_trust_function_creators

Then you also need to set the retention period

aws rds modify-db-instance --backup-retention-period 1 --db-instance-identifier <dbname> --apply-immediately

And then, just following any common guide of setup-ing the "active-active" replication should work.

已回答 1 年前
0

There is a better option. RDS now support managed blue green deployment to make maintenance operations easier: https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-blue-green-deployments-safer-simpler-faster-updates/

AWS
审核人员
philaws
已回答 1 年前
  • It might be better solution in some cases, but in our case, we need to remove downtime fully, and this "blue/green deployment" solution does have downtime.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则