amazon-web-services - AWS ElastiCache redis 和 maxmemory

标签 amazon-web-services redis

我正在运行配置有节点类型 cache.r5.xlarge 的 AWS Elasticache Redis。根据配置,最大内存应为 28261849702 (28G)。这是从

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific

但是当连接到 redis 端点时,它只显示 19G:

(来自“信息”命令)

# Memory
...
maxmemory:21196387277
maxmemory_human:19.74G
maxmemory_policy:volatile-lru
...

我想知道是否有人可以解释这种差异?

最佳答案

找到原因: 保留内存百分比默认为 25(百分比)。 这是特定于 AWS 的东西,而不是 Redis 本身的一部分。

关于amazon-web-services - AWS ElastiCache redis 和 maxmemory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57513565/

相关文章:

postgresql - 允许您在 SELECT 语句中引用别名列的 PostgreSQL 函数叫什么?

java - 用于条件保存的 DynamoDBMapper

mysql - 如何确保内存消耗不随 redis 数据库的大小而缩放

用于最快插入的 C++ 教程或 Redis 示例

php - 如何让 Laravel 与 AWS 上的 Redis 集群一起工作

python - 上市后 S3 key 不立即出现

amazon-web-services - 亚马逊 VPC : ami-vpc-nat: throughput of micro instance

node.js - AWS S3 按对象创建/修改日期降序排列所有对象 NodeJs

python - 在python中创建类和定义连接有什么问题

redis - 如何在 Aerospike 中保存信号量?