Version Management for ElastiCache
Manage how you would like to update your ElastiCache caches and node-based clusters updated for the Valkey, Memcached, and Redis OSS engines.
Version management for ElastiCache Serverless Cache
Manage if and when the ElastiCache Serverless cache is upgraded and perform version upgrades on your own terms and timelines.
ElastiCache Serverless automatically applies the latest minor and patch software version to your cache, without any impact or downtime to your application. No action is required on your end.
When a new major version is available, ElastiCache Serverless will send you a notification in the console and an event in EventBridge. You can choose to upgrade your cache to the latest major version by modifying your cache using the Console, CLI, or API and selecting the latest engine version. Similar to minor and patch upgrades, major version upgrades are performed without downtime to your application.
Version management for node-based ElastiCache clusters
When working with node-based ElastiCache clusters, you can control when the software powering your cluster is upgraded to new versions that are supported by ElastiCache. You can control when to upgrade your cache to the latest available major, minor, and patch versions. You initiate engine version upgrades to your cluster or replication group by modifying it and specifying a new engine version.
You can control if and when the protocol-compliant software powering your cluster is upgraded to new versions that are supported by ElastiCache. This level of control enables you to maintain compatibility with specific versions, test new versions with your application before deploying in production, and perform version upgrades on your own terms and timelines.
Because version upgrades might involve some compatibility risk, they don't occur automatically. You must initiate them.
Valkey and Redis OSS clusters
Note
-
If a Valkey or Redis OSS cluster is replicated across one or more Regions, the engine version is upgraded for secondary Regions and then for the primary Region.
ElastiCache for Redis OSS versions are identified with a semantic version which comprise a major and minor component. For example, in Redis OSS 6.2, the major version is 6, and the minor version 2. When operating node-based clusters, ElastiCache for Redis OSS also exposes the patch component, e.g. Redis OSS 6.2.1, and the patch version is 1.
Major versions are for API incompatible changes and minor versions are for new functionality added in a backwards-compatible way. Patch versions are for backwards-compatible bug fixes and non-functional changes.
With Valkey and Redis OSS, you initiate engine version upgrades to your cluster or replication group by modifying it and specifying a new engine version. For more information, see Modifying a replication group.
Memcached
With Memcached, to upgrade to a newer version you must modify your cluster and specify the new engine version you want to use. Upgrading to a newer Memcached version is a destructive process – you lose your data and start with a cold cache. For more information, see Modifying an ElastiCache cluster.
You should be aware of the following requirements when upgrading from an older version of
Memcached to Memcached version 1.4.33 or newer. CreateCacheCluster and
ModifyCacheCluster fails under the following conditions:
-
If
slab_chunk_max > max_item_size. -
If
max_item_size modulo slab_chunk_max != 0. -
If
max_item_size > ((max_cache_memory - memcached_connections_overhead) / 4).The value
(max_cache_memory - memcached_connections_overhead)is the node's memory useable for data. For more information, see Memcached connection overhead.