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

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

从属节点报告:

  1. redis-cli -p 7001 info memory | grep used_memory
  2. used_memory:10741368904
  3. used_memory_human:10.00G

没有钥匙:

  1. redis-cli -p 7001 info Keyspace
  2. # Keyspace

它的主报告大小正确:

  1. # Memory
  2. used_memory:4963584
  3. used_memory_human:4.73M

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

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

采取的措施:在从属服务器上,删除了.rdb文件并重新启动redis。主从同步正常,但仍报告差异。失败了,但没有解决。

  1. jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp01 -p 7001 info memory | grep used_memory_human
  2. used_memory_human:4.73M
  3. jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp02 -p 7001 info memory | grep used_memory_human
  4. used_memory_human:4.77M
  5. jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp03 -p 7001 info memory | grep used_memory_human
  6. used_memory_human:10.00G
  7. jira@fr4redistaskmp03:~$ redis-cli -h redistaskmp03 -p 7001 info replication
  8. # Replication
  9. role:slave
  10. master_host:172.25.8.17
  11. master_port:7001

你知道吗?
完整输出:坏输出:

  1. redistaskmp03:~$ redis-cli -p 7001 info memory
  2. # Memory
  3. used_memory:10741368904
  4. used_memory_human:10.00G
  5. used_memory_rss:6864896
  6. used_memory_rss_human:6.55M
  7. used_memory_peak:10741430888
  8. used_memory_peak_human:10.00G
  9. used_memory_peak_perc:100.00%
  10. used_memory_overhead:10741311316
  11. used_memory_startup:3658312
  12. used_memory_dataset:57588
  13. used_memory_dataset_perc:0.00%
  14. allocator_allocated:10741442744
  15. allocator_active:10741768192
  16. allocator_resident:10751008768
  17. total_system_memory:135206285312
  18. total_system_memory_human:125.92G
  19. used_memory_lua:37888
  20. used_memory_lua_human:37.00K
  21. used_memory_scripts:0
  22. used_memory_scripts_human:0B
  23. number_of_cached_scripts:0
  24. maxmemory:10737418240
  25. maxmemory_human:10.00G
  26. maxmemory_policy:noeviction
  27. allocator_frag_ratio:1.00
  28. allocator_frag_bytes:325448
  29. allocator_rss_ratio:1.00
  30. allocator_rss_bytes:9240576
  31. rss_overhead_ratio:0.00
  32. rss_overhead_bytes:-10744143872
  33. mem_fragmentation_ratio:0.00
  34. mem_fragmentation_bytes:-10734483056
  35. mem_not_counted_for_evict:0
  36. mem_replication_backlog:10737418240
  37. mem_clients_slaves:0
  38. mem_clients_normal:234764
  39. mem_aof_buffer:0
  40. mem_allocator:jemalloc-5.1.0
  41. active_defrag_running:0
  42. lazyfree_pending_objects:0

好消息是:

  1. # Memory
  2. used_memory:4963584
  3. used_memory_human:4.73M
  4. used_memory_rss:4591616
  5. used_memory_rss_human:4.38M
  6. used_memory_peak:5168376
  7. used_memory_peak_human:4.93M
  8. used_memory_peak_perc:96.04%
  9. used_memory_overhead:4908920
  10. used_memory_startup:3658352
  11. used_memory_dataset:54664
  12. used_memory_dataset_perc:4.19%
  13. allocator_allocated:4993456
  14. allocator_active:5312512
  15. allocator_resident:10412032
  16. total_system_memory:135206285312
  17. total_system_memory_human:125.92G
  18. used_memory_lua:37888
  19. used_memory_lua_human:37.00K
  20. used_memory_scripts:0
  21. used_memory_scripts_human:0B
  22. number_of_cached_scripts:0
  23. maxmemory:10737418240
  24. maxmemory_human:10.00G
  25. maxmemory_policy:noeviction
  26. allocator_frag_ratio:1.06
  27. allocator_frag_bytes:319056
  28. allocator_rss_ratio:1.96
  29. allocator_rss_bytes:5099520
  30. rss_overhead_ratio:0.44
  31. rss_overhead_bytes:-5820416
  32. mem_fragmentation_ratio:0.94
  33. mem_fragmentation_bytes:-309056
  34. mem_not_counted_for_evict:0
  35. mem_replication_backlog:1048576
  36. mem_clients_slaves:0
  37. mem_clients_normal:201992
  38. mem_aof_buffer:0
  39. mem_allocator:jemalloc-5.1.0
  40. active_defrag_running:0
  41. lazyfree_pending_objects:0

redis公司_version:5.0.4
也许是虫子?

q3qa4bjr

q3qa4bjr1#

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

相关问题