redis wrong“used\u memory\u human”on sentinel slave

zengzsys  于 2021-06-09  发布在  Redis
关注(0)|答案(1)|浏览(531)

从属节点报告:

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文件并重新启动redis。主从同步正常,但仍报告差异。失败了,但没有解决。

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
也许是虫子?

q3qa4bjr

q3qa4bjr1#

解决了的。问题是.conf文件上的“repl backlog size 10gb”。

相关问题