Adding new shards didn't increase the total available memory

0

Hi there!

I'm trying to horizontally scale a redis cluster running on elasticache.

I originally had 2 shards, with one replica each (4 nodes in total), running on m3.micro, and before doing any change, I ran INFO MEMORY via redis-cli, and maxmemory_human was at 416.25M.

I tried to add a third shard, but the result of maxmemory_human remains at 416.25M. Am I missing something here? Does maxmemory_human represent the entire memory space available for storing data in redis?

Thanks in advance!

digui
질문됨 4년 전971회 조회
1개 답변
0

Hi Digui,

Thanks so much for reaching out to the AWS Forum.

In this example, maxmemory_human refers to the total memory available to the current connected node. Each shard will show the available memory on the individual node. For example, if I have a t3.micro in cluster-mode-enabled. Each shard in this configuration will show 384.00M in memory which is the total instance type memory, less the reserved-memory (25% default).

A better way to understand the total memory available in your cluster is to take the number of shards ** maxmemory_human. In my example, I have 2 shards, so the total memory available is 384M ** 2 or 768M.

You can also monitor the usage on the node using a new ElastiCache metric called DatabaseMemoryUsagePercentage. You can view more here as well:https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheMetrics.Redis.html.

You can also find more details on the memory available to ElastiCache based on this support article: https://aws.amazon.com/premiumsupport/knowledge-center/available-memory-elasticache-redis-node/

Best,
Zach

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠