Use Case for AWS RDS Low Connections
Quick Links
- Configure AWS RDS Low Connections
- Use Case for AWS RDS Low Connections
- Triage Guides by Violation Type
AWS RDS Low Connections Policy
Why Use This Policy?
This policy helps to identify RDS DB instances that are under-utilized by examining their connection metrics over the past 30 days. Under-utilized instances can result in unnecessary costs and resource wastage. By flagging instances with low connection counts, you can make informed decisions about scaling, optimizing, or decommissioning them.
Pros and Cons
Pros
- Helps reduce costs by identifying under-utilized resources
- Improves resource utilization
- Provides actionable metrics for decision making
Cons
- Requires CloudWatch metrics to be available
- Might need appropriate IAM permissions to fetch data
How the Policy Works
This policy evaluates the average daily connections of an RDS instance over the last 30 days. If the average connections fall below a specified threshold, the instance is flagged as under-utilized.
Variables
rds_db_instance_avg_connections
(default: 2): Minimum number of average connections per day required for DB instances to be considered in-use.
Violation Types
ZERO_CONNECTIONS
: Indicates the instance has had zero connections in the past 30 days.CONNECTIONS_BELOW_THRESHOLD
: Indicates the instance's average daily connections are below the specified threshold.