Amazon ElastiCache is a caching service provided by AWS that helps improve the performance of your applications. It supports two in-memory caching engines: Memcached and Redis. When working with ElastiCache, it's essential to understand the network limits to ensure optimal performance and avoid any bottlenecks.
Maximum number of nodes per cluster:
Node bandwidth limits: The maximum bandwidth of an ElastiCache node depends on the instance type you choose. Node types with higher vCPU and memory resources tend to have higher network performance. Check the official documentation for specific bandwidth limits for each instance type.
ElastiCache subnet group limits: You can have up to 50 Amazon VPC subnets in a single ElastiCache subnet group.
Security groups per cache node: You are allowed to associate a maximum of 5 security groups per cache node.
To optimize your ElastiCache setup and avoid network bottlenecks, consider the following recommendations:
Here's an example of how to create a Redis cluster with cluster mode enabled using AWS CLI:
Remember to replace
your_subnet_group_name, and the security group IDs with appropriate values.