【发布时间】:2022-01-20 08:01:47
【问题描述】:
我想将 Redis 配置为 LRU 缓存。我想避免重复自己的内存限制。如果我这样做了
command: redis-server --maxmemory-policy allkeys-lru
deploy:
resources:
limits:
memory: 1.5G
这样就够了还是我真的需要放入这样的东西(我为操作系统等使用了稍小的尺寸)
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 1.4G
deploy:
resources:
limits:
memory: 1.5G
【问题讨论】: