Use Case for AWS ElastiCache Low Connection Count
Quick Links
- Configure AWS ElastiCache Low Connection Count
- Use Case for AWS ElastiCache Low Connection Count
- Triage Guides by Violation Type
AWS ElastiCache Low Connection Count
Why use this policy?
Pros:
- Cost Optimization: Identifying unused ElastiCache clusters can significantly reduce unnecessary costs.
- Resource Management: Helps in decluttering the environment by highlighting resources that are not being utilized by applications.
- Performance Impact: Removing or archiving idle resources can improve the management console performance.
Cons:
- Potential Service Disruption: If a cluster is incorrectly identified as unused, it might be wrongly terminated.
How the policy works:
This policy checks if an AWS ElastiCache cluster has had no requests (connections) in the last 30 days. It uses CloudWatch's CurrConnections
metric, normalized to requests per day.
Configuration Variables
inactivityPeriod
: The number of days to check for activity. Default:30
activityThreshold
: The minimum number of requests per day to consider the cluster active. Default:0
Violation Types
ELASTICACHE_CLUSTER_UNUSED
: Indicates the cluster has had less activity than the threshold set and may be a candidate for decommissioning.
The distinction between violationTypeIds
lies in the specific condition that triggers each violation, here being the lack of activity on an ElastiCache cluster based on the defined threshold.