我有一个 RDS 实例 (db.t2.small),存储类型为预配置 IOPS(SSD),备份保留期为 2 天。
我想将存储类型更改为通用(SSD),并将备份保留期更改为 30 天。
如果我进行此更改,实例是否会出现停机? 如果是的话,停机时间是多长? 我会面临任何数据丢失吗?
最佳答案
关于存储类型的更改,根据 AWS 文档,RDS 尝试保持数据量和数据库实例处于事件状态并服务请求,但性能可能会显着下降。性能下降可能如此普遍和严重,以至于它还不如离线。
Whenever you change the storage type of a DB instance, the data for that DB instance is migrated to a new volume. The duration of the migration depends on several factors such as database load, storage size, storage type, and amount of IOPS provisioned (if any). Typical migration times are under 24 hours, but can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation.
关于备份保留的更改,我尝试在 RDS (PostgreSQL) 上将其从 0 更改为 7,并重新启动实例并将其置于修改状态,但它仍然响应查询。我的 RDS 服务器上的负载几乎为 0,因此我不能说在这种状态下它的响应速度如何,但我认为更改备份保留期不会对数据库本身产生太大影响。
关于database - 降级AWS RDS实例存储类型和备份保留期限是否会导致停机和数据丢失?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35175487/