Hi Folks,
My team is facing below issue with 3 node redis-cluster.
currently the size of the dump.rdb file is around 7.5 GB.
total number of keys it is showing as 7.5 crore plus. but when we are checking keys in our major indices it is not even greater than 20 lakhs.
another thing is that when we are deleting the keys ( tried both ft.del and del ) from indices and doing bgsave space is not coming down.
I am not sure if there is any other way to free up the dump file size. Can someone assist and guide on this issue?
[stapp@hc9t07428 ~]$ ll -h /opt/mount1/redis/dump.rdb
-rw-r–r-- 1 stapp csst 7.5G Nov 12 07:05 /opt/mount1/redis/dump.rdb
[stapp@hc9t07428 ~]$ ll /opt/mount1/redis/dump.rdb
-rw-r–r-- 1 stapp csst 8021632602 Nov 12 07:05 /opt/mount1/redis/dump.rdb
[stapp@hc9t07428 ~]$ date
Fri Nov 12 07:47:21 UTC 2021
[stapp@hc9t07428 ~]$ redis-cli info memory
Memory
used_memory:25089152288
used_memory_human:23.37G
used_memory_rss:25593434112
used_memory_rss_human:23.84G
used_memory_peak:25092635408
used_memory_peak_human:23.37G
used_memory_peak_perc:99.99%
used_memory_overhead:4145798508
used_memory_startup:561328
used_memory_dataset:20943353780
used_memory_dataset_perc:83.48%
allocator_allocated:25089238136
allocator_active:25152786432
allocator_resident:25653260288
total_system_memory:33547927552
total_system_memory_human:31.24G
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:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.00
allocator_frag_bytes:63548296
allocator_rss_ratio:1.02
allocator_rss_bytes:500473856
rss_overhead_ratio:1.00
rss_overhead_bytes:-59826176
mem_fragmentation_ratio:1.02
mem_fragmentation_bytes:504302848
mem_not_counted_for_evict:0
mem_replication_backlog:1048576
mem_clients_slaves:33972
mem_clients_normal:271776
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
[stapp@hc9t07428 ~]$ redis-cli info keyspace
Keyspace
db0:keys=76753525,expires=0,avg_ttl=0
[stapp@hc9t07428 ~]$