Scaling, Protecting and Monitoring ElastiCache Clusters
This lesson explains how operators scale and protect node-based ElastiCache clusters, and how all caches are monitored for memory pressure, evictions and CPU.
Learning outcomes
After completing this lesson, you will be able to:
- Configure replication and Multi-AZ with automatic failover.
- Scale clusters vertically, for reads and horizontally.
- Interpret ElastiCache metrics such as evictions.
Replication and Multi-AZ
A Valkey or Redis OSS replication group has a primary node and up to five read replicas per shard, replicated asynchronously. With Multi-AZ with automatic failover enabled, ElastiCache promotes a replica in another AZ if the primary fails, typically within a minute, and updates the primary endpoint DNS. Applications should connect to the primary endpoint (cluster mode disabled) or configuration endpoint (cluster mode enabled) and the reader endpoint for reads, not to individual node endpoints. Backups (snapshots) can be automatic or manual and can seed new clusters. Global Datastore replicates a cluster to other Regions for low-latency reads and DR.
The following diagram shows one shard with replicas in three Availability Zones.

Scaling node-based clusters
Clusters scale in three ways. Vertical scaling changes the node type online for Valkey and Redis OSS. Read scaling adds or removes replicas. Horizontal scaling (cluster mode enabled) adds or removes shards with online resharding, and ElastiCache Auto Scaling can adjust shards or replicas with target tracking on CPU or memory. Data tiering node types (r6gd) extend capacity by moving less-used data to local SSD.
Monitoring
Key CloudWatch metrics for ElastiCache are listed in the following table, with what each indicates.
| Metric | Indicates |
|---|---|
| EngineCPUUtilization | Load on the single-threaded engine core (Valkey/Redis OSS); scale out or up when high |
| CPUUtilization | Host CPU; most relevant for Memcached and small nodes |
| DatabaseMemoryUsagePercentage | Memory used; high values lead to evictions |
| Evictions | Keys removed to free memory; rising values mean the cache is too small or TTLs too long |
| CacheHits / CacheMisses (or CacheHitRate) | Cache effectiveness |
| CurrConnections / NewConnections | Connection leaks or missing connection pooling |
| ReplicationLag | How far replicas are behind the primary |
| SwapUsage | Memory pressure on the host |
Cache under pressure
Rising evictions
After a feature launch, Evictions on a Valkey cluster climbs to thousands per minute, DatabaseMemoryUsagePercentage is at 98% and the cache hit rate falls from 95% to 60%, increasing load on the database. The new feature writes large objects with no TTL. The team adds a 1-hour TTL to the new keys and, because the cluster has cluster mode enabled, adds two shards with online resharding to increase total memory. Evictions stop and the hit rate recovers.
Which CPU metric matters most for Valkey and Redis OSS?
Show answer
EngineCPUUtilization, because the engine's main thread runs on one core.
Exam Tips
Remember for the exam
- Enable Multi-AZ with automatic failover and connect through primary or configuration endpoints.
- Cluster mode enabled scales by adding shards online; ElastiCache Auto Scaling can manage it.
- EngineCPUUtilization is the key CPU metric for Valkey and Redis OSS.
- Rising Evictions: add memory, shards or TTLs.
- Global Datastore replicates across Regions.