Amazonrds 简明教程

Amazon RDS - Event Notifications

在 Amazon RDS 数据库实例的生命周期中,会发生许多数据库事件,了解这些事件很重要。例如 - 数据库实例的备份已启动,或在重新启动 MySQL 或 MariaDB 时出现错误。

Throughout the life cycle of amazon RDS DB instances, many DB events occur which are important to be known beforehand. For example - A backup of the DB instance has started, or an error has occurred while restarting MySQL or MariaDB.

Notification Categories

根据事件的性质,可以将通知分为以下类别。

Based on the nature of the event, notifications can be classified into following categories.

Category

Example

Availability

DB instance is restarting or undergoing controlled shutdown

Backup

backup of the DB instance has started, or it is complete

Configuration change

The DB instance class for this DB instance is being changed or it is being converted to a Single-AZ DB instance.

Failover

The instance has recovered from a partial failover.

Failure

The DB instance has failed due to an incompatible configuration

Notification

Patching of the DB instance has completed

Recovery

Recovery of the DB instance is complete

Restoration

The DB instance has been restored from a DB snapshot

Creating Event Notifications

以下是创建事件订阅的步骤,通过这些订阅将通知发送给订阅者。

Below are the steps to create event subscriptions through which the notifications are sent to the subscriber.

Step-1

从 RDS 仪表盘中选择事件订阅选项卡。

Choose the Event subscription tab from the RDS dashboard.

Step-2

我们给事件命名并选择订阅源。

We give a name to the event and choose the subscription source.

event subs 1

现在选择源。

Now choosing the source.

event subs 2

Step-3

在下一步中,我们看到了为事件选择的订阅类型的源类型的详细信息。

In the next step we see the details of the source type of a subscription type chosen for the event.

event subs 3