Skip to content

How to horizontally scale Elacticache Redis cluster?

0

Currently, my customer uses 4 Redis nodes (cache.m6g.xlarge) with cluster-mode=Disabled and 1 shard, AZ failover enabled.

  1. AFAIK this configuration doesn't improve redundancy, but not scale and performance - compared with single node. Am I right?
  2. What is the optimal way to improve scalability and performance
  • use 2 cache.m6g.2xlarge nodes w/o cluster, with 1 shard?
  • use cluster?
  • something else?

CPU usage is pretty low, but from time to time RAM usage is coming to 90-100%, so I see evicted records.

asked 2 years ago368 views
1 Answer
1

Hello.

I think the following documents will be helpful for how to use them and compare them.
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Replication.Redis-RedisCluster.html

If cluster mode is disabled, the number of shards cannot be increased, so if the load is based on writes, the instance type must be increased.
In case of read load, you can increase the number of nodes in the shard to up to 5, which can handle it.
However, if the load load cannot be handled even by increasing the number of nodes, the instance You need to make the type larger.
Also, if the primary node goes down due to an AZ failure, recovery will be done by promoting a replica node in the same shard since there is no replacement primary node.
However, during this recovery process, the primary node is in a 0 state, so writing is not possible during that time.
Therefore, by enabling cluster mode, if the primary node goes down due to an AZ failure, the primary node in another shard is alive, so you can ensure that there is at least one primary node.
This is the advantage of cluster mode.
If you are concerned about the write process stopping even for a moment, we recommend enabling cluster mode, creating multiple shards, and placing the primary nodes in different AZs.

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.