yüksek çözünürlüklü redis cache logosu

Redis Monitoring Araçları

Redis, modern uygulamalarda kritik bir rol oynayan bellek tabanlı veri depolama sistemidir. Yüksek performansı ve ölçeklenebilirliği ile bilinen Redis’in etkin şekilde izlenmesi, sistem performansını korumak için hayati önem taşır ve mutlaka monitor edilmesi gereklidir.

Redis Nasıl İzlenir?

Redis, monitoring amaçları için çeşitli komutlar sunar:

  • INFO – Sistem bilgileri
127.0.0.1:6379> info
# Server
redis_version:7.0.15
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:3ec7bf4ec5bfafb8
redis_mode:standalone
os:Linux 6.8.0-60-generic x86_64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:13.3.0
process_id:1108
process_supervised:systemd
run_id:91c0928de87d7cd2689bf7c228826f18fff8021b
tcp_port:6379
server_time_usec:1749388392731517
uptime_in_seconds:3397
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:4557928
executable:/usr/bin/redis-server
config_file:/etc/redis/redis.conf
io_threads_active:0

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:20480
client_recent_max_output_buffer:524312
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:45120080
used_memory_human:43.03M
used_memory_rss:58667008
used_memory_rss_human:55.95M
used_memory_peak:46186088
used_memory_peak_human:44.05M
used_memory_peak_perc:97.69%
used_memory_overhead:3117856
used_memory_startup:875872
used_memory_dataset:42002224
used_memory_dataset_perc:94.93%
allocator_allocated:45899728
allocator_active:48005120
allocator_resident:52019200
total_system_memory:8325808128
total_system_memory_human:7.75G
used_memory_lua:31744
used_memory_vm_eval:31744
used_memory_lua_human:31.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:32768
used_memory_vm_total:64512
used_memory_vm_total_human:63.00K
used_memory_functions:200
used_memory_scripts:200
used_memory_scripts_human:200B
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.05
allocator_frag_bytes:2105392
allocator_rss_ratio:1.08
allocator_rss_bytes:4014080
rss_overhead_ratio:1.13
rss_overhead_bytes:6647808
mem_fragmentation_ratio:1.30
mem_fragmentation_bytes:13548760
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:22272
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:jemalloc-5.3.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
async_loading:0
current_cow_peak:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:4
rdb_bgsave_in_progress:0
rdb_last_save_time:1749388385
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
rdb_saves:7
rdb_last_cow_size:1732608
rdb_last_load_keys_expired:0
rdb_last_load_keys_loaded:42041
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_rewrites:0
aof_rewrites_consecutive_failures:0
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0

# Stats
total_connections_received:268
total_commands_processed:15747
instantaneous_ops_per_sec:0
total_net_input_bytes:86627362
total_net_output_bytes:263332324
total_net_repl_input_bytes:0
total_net_repl_output_bytes:0
instantaneous_input_kbps:0.02
instantaneous_output_kbps:104.12
instantaneous_input_repl_kbps:0.00
instantaneous_output_repl_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:25
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:268
evicted_keys:0
evicted_clients:0
total_eviction_exceeded_time:0
current_eviction_exceeded_time:0
keyspace_hits:15794
keyspace_misses:1011
pubsub_channels:0
pubsub_patterns:0
pubsubshard_channels:0
latest_fork_usec:1414
total_forks:7
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:0
dump_payload_sanitizations:0
total_reads_processed:13686
total_writes_processed:12768
io_threaded_reads_processed:0
io_threaded_writes_processed:0
reply_buffer_shrinks:40
reply_buffer_expands:73

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:a1be5959628691d3838649b6938858598efd05cd
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:4.872945
used_cpu_user:3.818863
used_cpu_sys_children:0.275777
used_cpu_user_children:2.033389
used_cpu_sys_main_thread:4.850802
used_cpu_user_main_thread:3.811101

# Modules

# Errorstats

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=42361,expires=22,avg_ttl=43283750
ShellScript
  • MONITOR – Gerçek zamanlı komut izleme ile çalıştırılan sorgular ve yürütülen süreçler kontrol edilir.
127.0.0.1:6379> monitor
OK
1749388445.259308 [0 127.0.0.1:43536] "PING"
1749388445.259830 [0 127.0.0.1:43536] "INFO"
1749388445.260798 [0 127.0.0.1:43536] "GET" "mertcan:default:is_blog_installed"
1749388445.263305 [0 127.0.0.1:43536] "GET" "mertcan:options:alloptions"
1749388445.264751 [0 127.0.0.1:43536] "GET" "mertcan:site-options:1-notoptions"
1749388445.267419 [0 127.0.0.1:43536] "GET" "mertcan:options:notoptions"
1749388445.267871 [0 127.0.0.1:43536] "GET" "mertcan:options:uninstall_plugins"
1749388445.268848 [0 127.0.0.1:43536] "GET" "mertcan:options:proxy_vpn_blocker_version"
1749388445.273155 [0 127.0.0.1:43536] "GET" "mertcan:userlogins:Mertcan"
1749388445.273407 [0 127.0.0.1:43536] "GET" "mertcan:users:1"
1749388445.273634 [0 127.0.0.1:43536] "GET" "mertcan:user_meta:1"
1749388445.273953 [0 127.0.0.1:43536] "GET" "mertcan:options:tkmyuwul_user_roles"
1749388445.276036 [0 127.0.0.1:43536] "GET" "mertcan:options:novashare_version"
1749388445.276522 [0 127.0.0.1:43536] "GET" "mertcan:options:perfmatters_version"
1749388445.276986 [0 127.0.0.1:43536] "GET" "mertcan:options:rank_math_review_notice_date"
1749388445.277121 [0 127.0.0.1:43536] "GET" "mertcan:options:rank_math_review_notice_added"
1749388445.278447 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:3a0aa3e5e50669e431162eb87cdd5123"
1749388445.279833 [0 127.0.0.1:43536] "GET" "mertcan:options:fs_cache_10671"
1749388445.282841 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:7afce2d780d03a20f5b64693065e3b30"
1749388445.283140 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:2a838bc2d644a643c3a4404ff4dbd8b2"
1749388445.283421 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:6b15b8f4368fce89de1320b0d0a56eae"
1749388445.285766 [0 127.0.0.1:43536] "GET" "mertcan:options:perfmatters_edd_license_key"
1749388445.292877 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:bf225623fd568a21268f38f7a607de74"
1749388445.298859 [0 127.0.0.1:43536] "GET" "mertcan:site-transient:wp_theme_files_patterns-6f6f4bb303fc3a16c096477067ef714a"
1749388445.299274 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:54d31986835d1b6e2793a04a8884cf27"
1749388445.300140 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:e47f5e1e0cf00ce59520a04c44ff7161"
1749388445.302178 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:362a739d23649ef2dec756363fa9e46f"
1749388445.308933 [0 127.0.0.1:43536] "GET" "mertcan:options:wpcode_library_api_auth"
1749388445.310341 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:12fa94db5e9536a6a1482d6adcf3523e"
1749388445.312598 [0 127.0.0.1:43536] "GET" "mertcan:transient:perfmatters_database_optimization_process"
1749388445.313631 [0 127.0.0.1:43536] "GET" "mertcan:transient:_rediscache_activation_redirect"
1749388445.314823 [0 127.0.0.1:43536] "GET" "mertcan:transient:quotaData"
1749388445.315109 [0 127.0.0.1:43536] "GET" "mertcan:translation_files:e06871efbebaa01c985bc1cb1786a1af"
1749388445.315420 [0 127.0.0.1:43536] "GET" "mertcan:options:external_updates-cbp-theme-pack"
1749388445.315898 [0 127.0.0.1:43536] "GET" "mertcan:options:rank_math_version"
1749388445.316346 [0 127.0.0.1:43536] "GET" "mertcan:posts:1897"
1749388445.316682 [0 127.0.0.1:43536] "GET" "mertcan:post_meta:1897"
1749388445.316941 [0 127.0.0.1:43536] "GET" "mertcan:options:_wp_suggested_policy_text_has_changed"
1749388445.317378 [0 127.0.0.1:43536] "GET" "mertcan:posts:30492"
1749388445.317738 [0 127.0.0.1:43536] "GET" "mertcan:post_meta:30492"
1749388445.317932 [0 127.0.0.1:43536] "MGET" "mertcan:post_meta:30492"
..
..
ShellScript
  • CLIENT LIST – Bağlı istemci listesini ne kadar ram kullandığını ne kadar süredir bağlı olduğuna dair bilgileri verir.
127.0.0.1:6379> client list
id=281 addr=127.0.0.1:43544 laddr=127.0.0.1:6379 fd=8 name= age=44 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=26 qbuf-free=20448 argv-mem=10 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=22298 events=r cmd=client|list user=default redir=-1 resp=2
ShellScript

gibi komutlar ile yerleşik olarak kontrollerinizi redis-cli üzerinden yapabilirsiniz ancak çoğu durumda bu bilgiler size yeterli gelmeyebilir veya uzun süreli kayıt edip gözlemlemek isteyebilirsiniz.

Kullanabileceğiniz basit ama etkili araçlar

Your Mastodon Instance