尝试插入Elasticache redis节点时,有时会出现"OOM command not allowed when used memory > 'maxmemory'"
错误 。
我从一个自我管理的redis实例(maxmemory = 12Go,maxmemory-policy = allkeys-lru)转到一个Elasticache redis 1(r5.large,即maxmemory = 14 Go,maxmemory-policy = allkeys-lru)。
但是,在迁移密钥后,我有时会遇到"OOM command not allowed when used memory > 'maxmemory'"
错误,我无法理解。
我已经检查了他们在这里的建议:https://aws.amazon.com/premiumsupport/knowledge-center/oom-command-not-allowed-redis/以解决问题,但到目前为止:
这是INFO memory
# Memory
used_memory:10526693040
used_memory_human:9.80G
used_memory_rss:11520012288
used_memory_rss_human:10.73G
used_memory_peak:10560011952
used_memory_peak_human:9.83G
used_memory_peak_perc:99.68%
used_memory_overhead:201133315
used_memory_startup:4203584
used_memory_dataset:10325559725
used_memory_dataset_perc:98.13%
allocator_allocated:10527575720
allocator_active:11510194176
allocator_resident:11667750912
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:10527885773
maxmemory_human:9.80G
maxmemory_policy:allkeys-lru
allocator_frag_ratio:1.09
allocator_frag_bytes:982618456
allocator_rss_ratio:1.01
allocator_rss_bytes:157556736
rss_overhead_ratio:0.99
rss_overhead_bytes:-147738624
mem_fragmentation_ratio:1.09
mem_fragmentation_bytes:993361528
mem_not_counted_for_evict:0
mem_replication_backlog:1048576
mem_clients_slaves:0
mem_clients_normal:153411
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
如果您有解决此问题的任何线索。 谢谢!