amazon-web-services - AWS ElastiCache redis 和 maxmemory
问题描述
我正在运行配置了节点类型 cache.r5.xlarge 的 AWS Elasticache Redis。根据配置,最大内存应为 28261849702 (28G)。这是从
但是,当连接到 redis 端点时,它只显示 19G:
(来自“信息”命令)
# Memory
...
maxmemory:21196387277
maxmemory_human:19.74G
maxmemory_policy:volatile-lru
...
我想知道是否有人可以解释这种差异?
解决方案
找到了原因:有一个默认为 25(百分比)的 reserved-memory-percent。这是特定于 AWS 的事情,而不是 Redis 本身的一部分。
推荐阅读
- c++ - OpenCV - 为什么光流不适用于出队
? - java - Java中的SSLSocketFactory,LDAP网络连接
- c# - 如果财产被声明为私有怎么办?如何在 C# 中调用它?
- sql - 获取特定等级之间的有序记录
- javascript - 如何在javascript中返回整数乘以3的数组?
- r - R:操作列表名称
- r - 如何防止虚线参数(部分)匹配按位置调用的关键字参数?
- ansible - Ansible:将 yaml 文件从远程位置读取到变量中
- vue.js - Vuetify v-btn 组件与 nuxt 属性不同
- c# - Telerik for Blazor 下拉选择事件未更新网格中的数据