When you start the Amazon wizard to create a table, it is suggested to create an alarm with a threshold of 80% and associate it with the SNS theme .
Under the hood, for R / W-capacity 1, this creates an alarm on
- ConsumedReadCapacityUnits> = 240 for 60 minutes
- ConsumedWriteCapacityUnits> = 240 for 60 minutes
240 = 0.8*1*60*5 , i.e. capacity(1) * seconds_in_5_minutes(300) * threshold(0.8) . 60 minutes is a period of anxiety. You can reduce it to 5 minutes, but it can increase the number of false positives.
In other words, the alarm goes off every time when the sum of units of power consumed in the 5 min ranges exceeds 24 hours for at least 1 hour.
Note: 5 minutes corresponds to the sampling period.
In the SNS console, you can add ' subscribers ' to the theme. These can be email, HTTP (S) callbacks, ... This allows you to reach multiple people / machines.
Each time the scaling logic starts, you will need to use the API to automatically update alarms using this formula.
source share