[redis 8.0.1]why are keyspace_hits and keyspace_misses always 0 on a replica? Master only synchronizes to a replica , but never reads from it, is it normal? It looks like there is a bug on redis 8.0+ because redis stack 7.4+ not only synchronizes to a replica, but also reads from it.

Stats

total_connections_received:59 total_commands_processed:23310692 instantaneous_ops_per_sec:894 total_net_input_bytes:2311441290 total_net_output_bytes:3899628 total_net_repl_input_bytes:2311413525 total_net_repl_output_bytes:0 instantaneous_input_kbps:77.01 instantaneous_output_kbps:0.05 instantaneous_input_repl_kbps:77.01 instantaneous_output_repl_kbps:0.00 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_subkeys:0 expired_keys:0 expired_stale_perc:0.00 expired_time_cap_reached_count:0 expire_cycle_cpu_milliseconds:0 evicted_keys:0 evicted_clients:0 evicted_scripts:0 total_eviction_exceeded_time:0 current_eviction_exceeded_time:0 keyspace_hits:0 keyspace_misses:0 pubsub_channels:0 pubsub_patterns:0 pubsubshard_channels:0 latest_fork_usec:13434 total_forks:441 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 total_active_defrag_time:0 current_active_defrag_time:0 tracking_total_keys:0 tracking_total_items:0 tracking_total_prefixes:0 unexpected_error_replies:0 total_error_replies:317 dump_payload_sanitizations:0 total_reads_processed:13115414 total_writes_processed:28800 io_threaded_reads_processed:0 io_threaded_writes_processed:0 client_query_buffer_limit_disconnections:0 client_output_buffer_limit_disconnections:0 reply_buffer_shrinks:55 reply_buffer_expands:2 eventloop_cycles:13352832 eventloop_duration_sum:1220552031 eventloop_duration_cmd_sum:398020688 instantaneous_eventloop_cycles_per_sec:631 instantaneous_eventloop_duration_usec:70 acl_access_denied_auth:0 acl_access_denied_cmd:0 acl_access_denied_key:0 acl_access_denied_channel:0

Replication

role:slave master_host:x.x.x.x master_port:6379 master_link_status:up master_last_io_seconds_ago:0 master_sync_in_progress:0 slave_read_repl_offset:2558662264 slave_repl_offset:2558662264 replica_full_sync_buffer_size:0 replica_full_sync_buffer_peak:2097120 slave_priority:100 slave_read_only:1 replica_announced:1 connected_slaves:0 master_failover_state:no-failover master_replid:ac611afbe279e048cba8626047b3541eb4313c4c master_replid2:0000000000000000000000000000000000000000 master_repl_offset:2558662264 second_repl_offset:-1 repl_backlog_active:1 repl_backlog_size:1048576 repl_backlog_first_byte_offset:2557607610 repl_backlog_histlen:1054655

Comment From: chongshengdz

redis-cli MONITOR shows no "get", only "PEXPIREAT" and "SET" on a replica

1747763764.771582 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_modules.02f92ad9989b3388e292e8e3cfb6e4ce" "1747767364758" 1747763764.771614 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.85ba5ef98edda98afaf41197dccbb076" "1747767364758" 1747763764.771626 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.f4c03275457e4fec62ac85c0350ecd96" "1747767364758" 1747763764.771636 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.01f449f4b0a7a07f6f9c7f06dab4b4d1" "1747767364758" 1747763764.771646 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_iseourl_data.a2cdd6f0b3106346cf11da5142f13d4d" "1748200712758" 1747763764.771662 [0 x.x.x.x:6379] "SET" "dddod_translations.85ba5ef98edda98afaf41197dccbb076" "[]" 1747763764.771709 [0 x.x.x.x:6379] "SET" "dddod_iseourl_data.fb6dcf3b2476255651a59d6b05542b5c" "[]" 1747763764.771722 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_modules.93bfb5b04beac9e14356ce65ad59e656" "1747767364758" 1747763764.771731 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.85ba5ef98edda98afaf41197dccbb076" "1747767364758" 1747763764.771740 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.7f230fbd1a67722947d384778aa19a21" "1747767364758" 1747763764.771750 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.e14eb8d28c1f0adf57940bbfee7d5b0d" "1747767364758" 1747763764.771763 [0 x.x.x.x:6379] "SET" "dddod_translations.9d5e1f4859bcf129914b3748da0acba7" "[]" 1747763764.771773 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.ccfc74b814c852c93bfeefbb42a383e3" "1747767364758" 1747763764.771786 [0 x.x.x.x:6379] "SET" "dddod_modules.60ea26237d2ffebe04b6b80d23131d73" "[]" 1747763764.771794 [0 x.x.x.x:6379] "SET" "dddod_translations.01f449f4b0a7a07f6f9c7f06dab4b4d1" "[]" 1747763764.772150 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.9d5e1f4859bcf129914b3748da0acba7" "1747767364766" 1747763764.772163 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_iseourl_data.fb6dcf3b2476255651a59d6b05542b5c" "1748202408766" 1747763764.772172 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.85ba5ef98edda98afaf41197dccbb076" "1747767364766" 1747763764.772181 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_modules.60ea26237d2ffebe04b6b80d23131d73" "1747767364766" 1747763764.772189 [0 x.x.x.x:6379] "PEXPIREAT" "dddod_translations.01f449f4b0a7a07f6f9c7f06dab4b4d1" "1747767364766" 1747763764.772201 [0 x.x.x.x:6379] "SET" "dddod_translations.e14eb8d28c1f0adf57940bbfee7d5b0d" "[]" 1747763764.772211 [0 x.x.x.x:6379] "SET" "dddod_translations.ccfc74b814c852c93bfeefbb42a383e3" "[]" 1747763764.772220 [0 x.x.x.x:6379] "SET" "dddod_translations.14c04883dae36f58c8f78e15eb8acaea" "[]" 1747763764.772230 [0 x.x.x.x:6379] "SET" "dddod_translations.7c84f724cb041839eff40aa48fc3bdab" "[]" 1747763764.772238 [0 x.x.x.x:6379] "SET" "dddod_modules.93bfb5b04beac9e14356ce65ad59e656" "[]" 1747763764.772246 [0 x.x.x.x:6379] "SET" "dddod_modules.02f92ad9989b3388e292e8e3cfb6e4ce" "[]" 1747763764.772255 [0 x.x.x.x:6379] "SET" "dddod_iseourl_data.ff035a4442d1a6c0958b68f80ab2a7e2" "[]"

Comment From: sundb

@chongshengdz Redis doesn't propagate readonly command to replica, did you confirm that GET was propagated to replica?