如何使用只读副本更改主实例上的 RDS 实例 class?
How to change a RDS instance class on master instance with a read replica?
我想更改 RDS 实例 class 并将 RDS 实例 class 更改为其副本。
我在 AWS 文档中读到 read replica becomes a standalone instance when Master (source) instance goes down。
我也读到 Modifying Instance Class requires a requires a reboot。因此,如果重启发生在主实例上(在它不可用期间),只读副本可能会接管并成为一个我不打算发生的独立实例。
当我更改主实例上的实例 class 时是否应该停止只读副本?在主实例和只读副本上更改实例 class 后,确保只读复制继续的步骤是什么?
下面,我根据文档编写了一组步骤,但我不确定这是否是正确的方法:
1. 停止 RDS replica-test-1 (reader)
2. 将master RDS test-1上的instance class改为db.r4.large,让status变为available
3、重启master RDS test-1,看到再次可用
4. 启动 RDS replica-test-1 (reader)
5. 在replica-test-1 上将instance class 更改为db.r4.large 并让状态更改为“available”
6. 重启replica-test-1,看到它又可用了。
有人可以帮助我知道这是否是正确的方法吗?
I read in the AWS Documentation that read replica becomes a standalone instance when Master (source) instance goes down.
你误解了一些东西。这是对 you promote a read replica to master 时发生的情况的描述。这是您故意执行的行政操作。该服务从不自动执行此操作,在 MySQL 或 MariaDB 的 RDS 中。
None 您建议的步骤是必要的。只需修改主服务器即可。当主服务器重启时,副本不会被提升。
您也可以尝试为主从启用Multi A-z部署,即使多次重启,主从仍然可用。
我想更改 RDS 实例 class 并将 RDS 实例 class 更改为其副本。 我在 AWS 文档中读到 read replica becomes a standalone instance when Master (source) instance goes down。 我也读到 Modifying Instance Class requires a requires a reboot。因此,如果重启发生在主实例上(在它不可用期间),只读副本可能会接管并成为一个我不打算发生的独立实例。 当我更改主实例上的实例 class 时是否应该停止只读副本?在主实例和只读副本上更改实例 class 后,确保只读复制继续的步骤是什么?
下面,我根据文档编写了一组步骤,但我不确定这是否是正确的方法: 1. 停止 RDS replica-test-1 (reader) 2. 将master RDS test-1上的instance class改为db.r4.large,让status变为available 3、重启master RDS test-1,看到再次可用 4. 启动 RDS replica-test-1 (reader) 5. 在replica-test-1 上将instance class 更改为db.r4.large 并让状态更改为“available” 6. 重启replica-test-1,看到它又可用了。
有人可以帮助我知道这是否是正确的方法吗?
I read in the AWS Documentation that read replica becomes a standalone instance when Master (source) instance goes down.
你误解了一些东西。这是对 you promote a read replica to master 时发生的情况的描述。这是您故意执行的行政操作。该服务从不自动执行此操作,在 MySQL 或 MariaDB 的 RDS 中。
None 您建议的步骤是必要的。只需修改主服务器即可。当主服务器重启时,副本不会被提升。
您也可以尝试为主从启用Multi A-z部署,即使多次重启,主从仍然可用。