A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-cluster-cloudwatch-alarm.html below:

Tutorial: Creating an Amazon CloudWatch alarm for Multi-AZ DB cluster replica lag for Amazon RDS

Tutorial: Creating an Amazon CloudWatch alarm for Multi-AZ DB cluster replica lag for Amazon RDS

You can create an Amazon CloudWatch alarm that sends an Amazon SNS message when replica lag for a Multi-AZ DB cluster has exceeded a threshold. An alarm watches the ReplicaLag metric over a time period that you specify. The action is a notification sent to an Amazon SNS topic or Amazon EC2 Auto Scaling policy.

To set a CloudWatch alarm for Multi-AZ DB cluster replica lag
  1. Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Alarms, All alarms.

  3. Choose Create alarm.

  4. On the Specify metric and conditions page, choose Select metric.

  5. In the search box, enter the name of your Multi-AZ DB cluster and press Enter.

    The following image shows the Select metric page with a Multi-AZ DB cluster named rds-cluster entered.

  6. Choose RDS, Per-Database Metrics.

  7. In the search box, enter ReplicaLag and press Enter, then select each DB instance in the DB cluster.

    The following image shows the Select metric page with the DB instances selected for the ReplicaLag metric.

    This alarm considers the replica lag for all three of the DB instances in the Multi-AZ DB cluster. The alarm responds when any DB instance exceeds the threshold. It uses a math expression that returns the maximum value of the three metrics. Start by sorting by metric name, and then choose all three ReplicaLag metrics.

  8. From Add math, choose All functions, MAX.

  9. Choose the Graphed metrics tab, and edit the details for Expression1 to MAX([m1,m2,m3]).

  10. For all three ReplicaLag metrics, change the Period to 1 minute.

  11. Clear selection from all metrics except for Expression1.

    The Select metric page should look similar to the following image.

  12. Choose Select metric.

  13. On the Specify metric and conditions page, change the label to a meaningful name, such as ClusterReplicaLag, and enter a number of seconds in Define the threshold value. For this tutorial, enter 1200 seconds (20 minutes). You can adjust this value for your workload requirements.

    The Specify metric and conditions page should look similar to the following image.

  14. Choose Next, and the Configure actions page appears.

  15. Keep In alarm selected, choose Create new topic, and enter the topic name and a valid email address.

  16. Choose Create topic, and then choose Next.

  17. On the Add name and description page, enter the Alarm name and Alarm description, and then choose Next.

  18. Preview the alarm that you're about to create on the Preview and create page, and then choose Create alarm.

Creating CloudWatch alarms

Monitoring with Database Insights

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4