- Newest
- Most votes
- Most comments
When your NetworkPacketsPerSecondAllowanceExceeded metric is greater than 0, it indicates that your ElastiCache node is exceeding its packets per second (PPS) limit. This is happening despite your low memory utilization (only 2-4%), which confirms that memory isn't your bottleneck.
Based on your workload characteristics:
- High operation rates (100,000 ops/sec average, peaking at 430,000 ops/sec)
- Balanced read/write operations
- Moderate CPU utilization (70% overall, 50% engine)
- Low cache hit rate (20%)
- High network traffic (3.5-4G bytes in, 15-20G bytes out)
Your plan to add a read replica with a cache.m7g.2xlarge node may help with read operations, but since your workload appears to be balanced between reads and writes, it might not fully resolve the issue. For cluster mode disabled (CMD) clusters, there are some important considerations:
-
Read replicas will only help offload read operations, not writes, as all writes must go to the primary node.
-
Since your operations are balanced between reads and writes, you might still face PPS limitations on the primary node for write operations.
-
For write-heavy or balanced workloads in CMD clusters, scaling up to a larger node type is typically the recommended approach.
Additional suggestions:
-
Consider upgrading to a larger node type for your primary node to handle the high PPS.
-
Evaluate moving to cluster mode enabled (CME) which would allow you to distribute both reads and writes across multiple shards.
-
Review your application to see if you can batch operations to reduce the number of small requests, which would decrease your PPS.
-
Analyze your low cache hit rate (20%) - improving this could reduce the overall number of operations needed.
-
If possible, implement client-side caching to reduce the number of requests to ElastiCache.
Given your balanced read/write workload and CMD architecture, adding a read replica might provide some relief but likely won't completely resolve the PPS issue. A node type upgrade or migration to CME would be more effective for your specific use case.
Sources
Troubleshoot Network allowance exceeded metrics in ElastiCache | AWS re:Post
Host-Level Metrics - Amazon MemoryDB
Persistent connection issues - Amazon ElastiCache
Relevant content
- AWS OFFICIALUpdated 3 years ago
