说明增加 MySQL RDS 实例的存储容量时的停机时间
Clarification of downtime when increasing storage capacity of MySQL RDS Instance
我在多可用区中有一个 MySQL RDS 实例,其存储容量 = 200 GB。我的实例 class 是 db.m3.large 我的存储类型是 SSD.
我想将存储容量增加一倍至 400 GB(扩大数据库)。在 RDS FAQ 上:https://aws.amazon.com/rds/faqs/ 它说 "while the storage capacity is being increased the DB instance is still available"。这是否意味着在扩展时我仍然可以 read/write 访问我的实例?
RDS FAQ 上也提到当您 "decide to scale the compute resources available to your DB instance up or down, your database will be temporarily unavailable while the DB instance class is modified. This period of unavailability typically lasts only a few minutes." 计算资源指的是什么? (实例 class 或存储类型)?这是否 "unavailability" 意味着我将无法 read/write 在计算资源按比例放大或缩小时连接到数据库实例?
是的,在扩展存储时,RDS 实例仍然可用,您可以 read/write 但是,如前所述,性能可能会在更改期间下降。
"Compute resources" 引用实例 class。如果您更改实例 class,则会触发一小段不可用时间。
我相信这里实际发生的事情与数据库版本升级期间基本相同:
- upgrade/resize待机
- 将备用数据库提升为主要数据库
- upgrade/resize old primary,成为 new standby
RDS 实例将在短时间内 (typically under 2 minutes) 不可用,因为在步骤 #2 中更改了 DNS 以将备用实例提升为主要实例。
我在多可用区中有一个 MySQL RDS 实例,其存储容量 = 200 GB。我的实例 class 是 db.m3.large 我的存储类型是 SSD.
我想将存储容量增加一倍至 400 GB(扩大数据库)。在 RDS FAQ 上:https://aws.amazon.com/rds/faqs/ 它说 "while the storage capacity is being increased the DB instance is still available"。这是否意味着在扩展时我仍然可以 read/write 访问我的实例?
RDS FAQ 上也提到当您 "decide to scale the compute resources available to your DB instance up or down, your database will be temporarily unavailable while the DB instance class is modified. This period of unavailability typically lasts only a few minutes." 计算资源指的是什么? (实例 class 或存储类型)?这是否 "unavailability" 意味着我将无法 read/write 在计算资源按比例放大或缩小时连接到数据库实例?
是的,在扩展存储时,RDS 实例仍然可用,您可以 read/write 但是,如前所述,性能可能会在更改期间下降。
"Compute resources" 引用实例 class。如果您更改实例 class,则会触发一小段不可用时间。
我相信这里实际发生的事情与数据库版本升级期间基本相同:
- upgrade/resize待机
- 将备用数据库提升为主要数据库
- upgrade/resize old primary,成为 new standby
RDS 实例将在短时间内 (typically under 2 minutes) 不可用,因为在步骤 #2 中更改了 DNS 以将备用实例提升为主要实例。