I think you are on to something. Here’s the info before/after FLUSHALL, and I will get back to you with that script:
Before FLUSHALL:
Server
redis_version:5.0.1
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:678e98ad35fb9585
redis_mode:standalone
os:Linux 4.14.74+ x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:6.3.0
process_id:10
run_id:1fbb11439544b7ceb72ecad2604942670db3412c
tcp_port:6379
uptime_in_seconds:7387
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:5467258
executable:/opt/rs-project/redis-server
config_file:/opt/rs-project/redis.conf
Clients
connected_clients:1787
client_recent_max_input_buffer:4
client_recent_max_output_buffer:0
blocked_clients:14
Memory
used_memory:34360784664
used_memory_human:32.00G
used_memory_rss:35347845120
used_memory_rss_human:32.92G
used_memory_peak:35884029800
used_memory_peak_human:33.42G
used_memory_peak_perc:95.76%
used_memory_overhead:157674526
used_memory_startup:791312
used_memory_dataset:34203110138
used_memory_dataset_perc:99.54%
allocator_allocated:34363255744
allocator_active:34500288512
allocator_resident:34981470208
total_system_memory:84471541760
total_system_memory_human:78.67G
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:40802189312
maxmemory_human:38.00G
maxmemory_policy:noeviction
allocator_frag_ratio:1.00
allocator_frag_bytes:137032768
allocator_rss_ratio:1.01
allocator_rss_bytes:481181696
rss_overhead_ratio:1.01
rss_overhead_bytes:366374912
mem_fragmentation_ratio:1.03
mem_fragmentation_bytes:986063752
mem_not_counted_for_evict:0
mem_replication_backlog:33554432
mem_clients_slaves:0
mem_clients_normal:35731014
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
Persistence
loading:0
rdb_changes_since_last_save:1147482
rdb_bgsave_in_progress:0
rdb_last_save_time:1548970649
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:138
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:3279900672
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
Stats
total_connections_received:306045
total_commands_processed:53546399
instantaneous_ops_per_sec:3521
total_net_input_bytes:33600036484
total_net_output_bytes:43489342601
instantaneous_input_kbps:4293.19
instantaneous_output_kbps:63.06
rejected_connections:0
sync_full:8
sync_partial_ok:0
sync_partial_err:7
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:55403660
keyspace_misses:592
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:916526
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
Replication
role:master
connected_slaves:0
master_replid:3eefae3c53352a1e03afde1a028201132b5b5f78
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:31964389624
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:33554432
repl_backlog_first_byte_offset:31930835193
repl_backlog_histlen:33554432
CPU
used_cpu_sys:2037.640381
used_cpu_user:4674.167834
used_cpu_sys_children:1118.491446
used_cpu_user_children:2087.244725
Cluster
cluster_enabled:0
Keyspace
db0:keys=1770513,expires=0,avg_ttl=0
-
index_name
-
fixmyzonar-latest
-
index_options
-
(empty list or set)
-
fields
-
-
-
field_1
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_2
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_3
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_4
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_5
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_6
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_7
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_8
-
type
-
TEXT
-
WEIGHT
-
“1”
-
SORTABLE
-
-
field_9
-
type
-
GEO
-
num_docs
-
“449289”
-
max_doc_id
-
“291230962”
-
num_terms
-
“1321220”
-
num_records
-
“1.8446744073510504e+19”
-
inverted_sz_mb
-
“17592186043188.352”
-
offset_vectors_sz_mb
-
“3285.8612232208252”
-
doc_table_size_mb
-
“624.39939594268799”
-
sortable_values_size_mb
-
“1779.861611366272”
-
key_table_size_mb
-
“15.402425765991211”
-
records_per_doc_avg
-
“41057635672606.164”
-
bytes_per_record_avg
-
“1”
-
offsets_per_term_avg
-
“1.867795917931403e-10”
-
offset_bits_per_record_avg
-
“8”
-
gc_stats
-
-
bytes_collected
-
“519210748”
-
total_ms_run
-
“5069638”
-
total_cycles
-
“193”
-
avarage_cycle_time_ms
-
“26267.554404145078”
-
last_run_time_ms
10) "20503"
11) gc_numeric_trees_missed
12) "0"
13) gc_blocks_denied
14) "1598860"
-
cursor_stats
-
-
global_idle
-
(integer) 0
-
global_total
-
(integer) 0
After FLUSHALL:
Server
redis_version:5.0.1
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:678e98ad35fb9585
redis_mode:standalone
os:Linux 4.14.74+ x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:6.3.0
process_id:10
run_id:1fbb11439544b7ceb72ecad2604942670db3412c
tcp_port:6379
uptime_in_seconds:8087
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:5467958
executable:/opt/zonar/fixmyzonar-redis/redis-server
config_file:/opt/zonar/fixmyzonar-redis/redis.conf
Clients
connected_clients:357
client_recent_max_input_buffer:2
client_recent_max_output_buffer:0
blocked_clients:0
Memory
used_memory:641325960
used_memory_human:611.62M
used_memory_rss:2088706048
used_memory_rss_human:1.95G
used_memory_peak:35884029800
used_memory_peak_human:33.42G
used_memory_peak_perc:1.79%
used_memory_overhead:44497456
used_memory_startup:791312
used_memory_dataset:596828504
used_memory_dataset_perc:93.18%
allocator_allocated:643809856
allocator_active:1050882048
allocator_resident:1659817984
total_system_memory:84471541760
total_system_memory_human:78.67G
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:40802189312
maxmemory_human:38.00G
maxmemory_policy:noeviction
allocator_frag_ratio:1.63
allocator_frag_bytes:407072192
allocator_rss_ratio:1.58
allocator_rss_bytes:608935936
rss_overhead_ratio:1.26
rss_overhead_bytes:428888064
mem_fragmentation_ratio:3.26
mem_fragmentation_bytes:1447425824
mem_not_counted_for_evict:0
mem_replication_backlog:33554432
mem_clients_slaves:16914
mem_clients_normal:10134798
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:46
lazyfree_pending_objects:0
Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1548971796
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:46399488
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
Stats
total_connections_received:307530
total_commands_processed:56151788
instantaneous_ops_per_sec:13015
total_net_input_bytes:36736979509
total_net_output_bytes:43541705543
instantaneous_input_kbps:32258.78
instantaneous_output_kbps:165.21
rejected_connections:0
sync_full:10
sync_partial_ok:0
sync_partial_err:8
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:57647294
keyspace_misses:408412
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:169870
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
Replication
role:master
connected_slaves:1
slave0:ip=10.140.0.61,port=6379,state=online,offset=0,lag=24
master_replid:3eefae3c53352a1e03afde1a028201132b5b5f78
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:34216051012
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:33554432
repl_backlog_first_byte_offset:34182496581
repl_backlog_histlen:33554432
CPU
used_cpu_sys:2141.908940
used_cpu_user:5259.850778
used_cpu_sys_children:1179.108393
used_cpu_user_children:2243.544968
Cluster
cluster_enabled:0