前哨奴隶上Redis错误的“ used_memory_human”

问题描述 投票:0回答:1

一个从属节点报告:

redis-cli -p 7001 info memory | grep used_memory
used_memory:10741368904
used_memory_human:10.00G

无键:

redis-cli -p 7001 info Keyspace
# Keyspace

它的主人报告了正确的尺寸:

# Memory
used_memory:4963584
used_memory_human:4.73M

持久性文件在每个服务器上的大小都相同:

-rw-r--r-- 1 root root 178 Feb 28 17:43 /var/lib/redis/dump_7001.rdb

采取的措施:在从站上,.rdb文件已删除并重新启动。从站同步成功,但仍报告差异。进行了故障转移,但没有解决。

jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp01 -p 7001 info memory  | grep  used_memory_human
used_memory_human:4.73M

jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp02 -p 7001 info memory  | grep  used_memory_human
used_memory_human:4.77M

jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp03 -p 7001 info memory  | grep  used_memory_human
used_memory_human:10.00G

jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp03 -p 7001 info replication
# Replication
role:slave
master_host:172.25.8.17
master_port:7001

任何想法?

完整的输出:坏人:

redistaskmp03:~$  redis-cli -p 7001 info memory
# Memory
used_memory:10741368904
used_memory_human:10.00G
used_memory_rss:6864896
used_memory_rss_human:6.55M
used_memory_peak:10741430888
used_memory_peak_human:10.00G
used_memory_peak_perc:100.00%
used_memory_overhead:10741311316
used_memory_startup:3658312
used_memory_dataset:57588
used_memory_dataset_perc:0.00%
allocator_allocated:10741442744
allocator_active:10741768192
allocator_resident:10751008768
total_system_memory:135206285312
total_system_memory_human:125.92G
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:10737418240
maxmemory_human:10.00G
maxmemory_policy:noeviction
allocator_frag_ratio:1.00
allocator_frag_bytes:325448
allocator_rss_ratio:1.00
allocator_rss_bytes:9240576
rss_overhead_ratio:0.00
rss_overhead_bytes:-10744143872
mem_fragmentation_ratio:0.00
mem_fragmentation_bytes:-10734483056
mem_not_counted_for_evict:0
mem_replication_backlog:10737418240
mem_clients_slaves:0
mem_clients_normal:234764
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

好人:

    # Memory
used_memory:4963584
used_memory_human:4.73M
used_memory_rss:4591616
used_memory_rss_human:4.38M
used_memory_peak:5168376
used_memory_peak_human:4.93M
used_memory_peak_perc:96.04%
used_memory_overhead:4908920
used_memory_startup:3658352
used_memory_dataset:54664
used_memory_dataset_perc:4.19%
allocator_allocated:4993456
allocator_active:5312512
allocator_resident:10412032
total_system_memory:135206285312
total_system_memory_human:125.92G
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:10737418240
maxmemory_human:10.00G
maxmemory_policy:noeviction
allocator_frag_ratio:1.06
allocator_frag_bytes:319056
allocator_rss_ratio:1.96
allocator_rss_bytes:5099520
rss_overhead_ratio:0.44
rss_overhead_bytes:-5820416
mem_fragmentation_ratio:0.94
mem_fragmentation_bytes:-309056
mem_not_counted_for_evict:0
mem_replication_backlog:1048576
mem_clients_slaves:0
mem_clients_normal:201992
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

redis_version:5.0.4

也许是个错误?

redis node-redis
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.