AWS RDS 在创建时不断备份我的服务器

AWS RDS 在创建时不断备份我的服务器

我正在使用 Amazon CloudFormation 创建包含 EC2 和 RDS (Postgres 9.4.4、5gb、db.m1.small) 的堆栈。RDS 实例一启动就会启动备份。

如何阻止 RDS 在启动时备份?

以下是 Postgres 日志:

2016-01-12 22:23:31 UTC::@:[2435]:LOG: database system is ready to accept connections
2016-01-12 22:23:31 UTC::@:[2448]:LOG: autovacuum launcher started
2016-01-12 22:23:34 UTC::@:[2445]:LOG: checkpoint starting: immediate force wait flush-all
2016-01-12 22:23:34 UTC::@:[2445]:LOG: checkpoint complete: wrote 23 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.011 s, total=0.051 s; sync files=20, longest=0.011 s, average=0.000 s
2016-01-12 22:23:35 UTC::@:[2445]:LOG: checkpoint starting: immediate force wait
2016-01-12 22:23:35 UTC::@:[2445]:LOG: checkpoint complete: wrote 0 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.000 s, total=0.005 s; sync files=0, longest=0.000 s, average=0.000 s
2016-01-12 22:25:20 UTC::@:[2445]:LOG: checkpoint starting: force wait
2016-01-12 22:25:24 UTC::@:[2445]:LOG: checkpoint complete: wrote 32 buffers (0.1%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=3.133 s, sync=0.015 s, total=3.161 s; sync files=27, longest=0.015 s, average=0.000 s
2016-01-12 22:30:20 UTC::@:[2445]:LOG: checkpoint starting: time
2016-01-12 22:30:20 UTC::@:[2445]:LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.004 s, total=0.018 s; sync files=1, longest=0.004 s, average=0.004 s
----------------------- END OF LOG ----------------------

Web GUI 上的“警报和最近事件”面板显示:

time (utc-5)    event
Jan 12 5:29 PM
Finished DB Instance backup
Jan 12 5:25 PM
Backing up DB instance
Jan 12 5:24 PM
DB instance created

答案1

在 RDS 实例控制面板中设置维护和备份窗口。以下信息可用这里

我发现这种“创建时备份”行为没有记录在案。它可能是自动的,无法更改。

为什么你要创建这么多数据库或如此频繁地停止/启动数据库?一些背景信息可以让你更容易地获得帮助。我创建了一次 RDS 数据库,它每晚都会在我的备份窗口中备份。

相关内容