현재 레디스 클러스터의 모습은 마스터1대와 슬레이브2대이다.
마스터의 info
127.0.0.1:6379> info
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:86878b7aea272845
redis_mode:standalone
os:Linux 5.10.76-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:8.3.0
process_id:1
process_supervised:no
run_id:2eba2547866172073444739661def12e72b502cc
tcp_port:6379
server_time_usec:1640599360572206
uptime_in_seconds:480
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:13209408
executable:/redis-server
config_file:/opt/bitnami/redis/etc/redis.conf
io_threads_active:0
# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:32
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
# Memory
used_memory:1964688
used_memory_human:1.87M
used_memory_rss:8253440
used_memory_rss_human:7.87M
used_memory_peak:2044864
used_memory_peak_human:1.95M
used_memory_peak_perc:96.08%
used_memory_overhead:1920408
used_memory_startup:810072
used_memory_dataset:44280
used_memory_dataset_perc:3.84%
allocator_allocated:2042128
allocator_active:2314240
allocator_resident:5128192
total_system_memory:10447949824
total_system_memory_human:9.73G
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.13
allocator_frag_bytes:272112
allocator_rss_ratio:2.22
allocator_rss_bytes:2813952
rss_overhead_ratio:1.61
rss_overhead_bytes:3125248
mem_fragmentation_ratio:4.29
mem_fragmentation_bytes:6331520
mem_not_counted_for_evict:124
mem_replication_backlog:1048576
mem_clients_slaves:41024
mem_clients_normal:20496
mem_aof_buffer:128
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0
# Persistence
loading: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:2
rdb_bgsave_in_progress:0
rdb_last_save_time:1640598882
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:286720
aof_enabled:1
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
module_fork_in_progress:0
module_fork_last_cow_size:0
aof_current_size:88
aof_base_size:0
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:0
# Stats
total_connections_received:6
total_commands_processed:950
instantaneous_ops_per_sec:2
total_net_input_bytes:34098
total_net_output_bytes:42553
instantaneous_input_kbps:0.08
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:2
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:100
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:289
total_forks:2
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
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:954
total_writes_processed:112
io_threaded_reads_processed:0
io_threaded_writes_processed:0
# Replication
role:master
connected_slaves:2
slave0:ip=192.168.32.3,port=6379,state=online,offset=732,lag=1
slave1:ip=192.168.32.4,port=6379,state=online,offset=732,lag=0
master_failover_state:no-failover
master_replid:206c1c3c4914f0362f4621eb1f39fb9fee73cb73
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:732
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:732
# CPU
used_cpu_sys:2.127181
used_cpu_user:0.693893
used_cpu_sys_children:0.036921
used_cpu_user_children:0.047238
used_cpu_sys_main_thread:2.098669
used_cpu_user_main_thread:0.682797
# Modules
# Errorstats
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=2,expires=0,avg_ttl=0
슬레이브1의 info
127.0.0.1:6379> info
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:86878b7aea272845
redis_mode:standalone
os:Linux 5.10.76-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:8.3.0
process_id:1
process_supervised:no
run_id:98c18ed03347135377207e867ba832f7ba032e71
tcp_port:6379
server_time_usec:1640599476100503
uptime_in_seconds:595
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:13209524
executable:/redis-server
config_file:/opt/bitnami/redis/etc/redis.conf
io_threads_active:0
# Clients
connected_clients:2
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:16
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
# Memory
used_memory:1943800
used_memory_human:1.85M
used_memory_rss:8646656
used_memory_rss_human:8.25M
used_memory_peak:2001832
used_memory_peak_human:1.91M
used_memory_peak_perc:97.10%
used_memory_overhead:1899896
used_memory_startup:810088
used_memory_dataset:43904
used_memory_dataset_perc:3.87%
allocator_allocated:2118456
allocator_active:2404352
allocator_resident:5136384
total_system_memory:10447949824
total_system_memory_human:9.73G
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.13
allocator_frag_bytes:285896
allocator_rss_ratio:2.14
allocator_rss_bytes:2732032
rss_overhead_ratio:1.68
rss_overhead_bytes:3510272
mem_fragmentation_ratio:4.55
mem_fragmentation_bytes:6745624
mem_not_counted_for_evict:124
mem_replication_backlog:1048576
mem_clients_slaves:0
mem_clients_normal:40992
mem_aof_buffer:128
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0
# Persistence
loading: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:2
rdb_bgsave_in_progress:0
rdb_last_save_time:1640598881
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:1
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:225280
module_fork_in_progress:0
module_fork_last_cow_size:0
aof_current_size:180
aof_base_size:92
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:0
# Stats
total_connections_received:4
total_commands_processed:69
instantaneous_ops_per_sec:0
total_net_input_bytes:1265
total_net_output_bytes:106809
instantaneous_input_kbps:0.01
instantaneous_output_kbps:11.83
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:312
total_forks:1
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
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:1
dump_payload_sanitizations:0
total_reads_processed:73
total_writes_processed:589
io_threaded_reads_processed:0
io_threaded_writes_processed:0
# Replication
role:slave
master_host:redis-master
master_port:6379
master_link_status:up
master_last_io_seconds_ago:2
master_sync_in_progress:0
slave_read_repl_offset:900
slave_repl_offset:900
slave_priority:100
slave_read_only:1
replica_announced:1
connected_slaves:0
master_failover_state:no-failover
master_replid:206c1c3c4914f0362f4621eb1f39fb9fee73cb73
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:900
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:900
# CPU
used_cpu_sys:2.189810
used_cpu_user:0.862703
used_cpu_sys_children:0.063846
used_cpu_user_children:0.059484
used_cpu_sys_main_thread:2.173742
used_cpu_user_main_thread:0.855407
# Modules
# Errorstats
errorstat_READONLY:count=1
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=2,expires=0,avg_ttl=0
슬레이브2의 info
127.0.0.1:6379> info
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:86878b7aea272845
redis_mode:standalone
os:Linux 5.10.76-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:8.3.0
process_id:1
process_supervised:no
run_id:a8c35434a874d64104c72f6d35f2f15402eaec21
tcp_port:6379
server_time_usec:1640599522842555
uptime_in_seconds:641
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:13209570
executable:/redis-server
config_file:/opt/bitnami/redis/etc/redis.conf
io_threads_active:0
# Clients
connected_clients:2
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:16
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
# Memory
used_memory:1943760
used_memory_human:1.85M
used_memory_rss:8323072
used_memory_rss_human:7.94M
used_memory_peak:2001936
used_memory_peak_human:1.91M
used_memory_peak_perc:97.09%
used_memory_overhead:1899896
used_memory_startup:810088
used_memory_dataset:43864
used_memory_dataset_perc:3.87%
allocator_allocated:2158336
allocator_active:2519040
allocator_resident:5300224
total_system_memory:10447949824
total_system_memory_human:9.73G
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.17
allocator_frag_bytes:360704
allocator_rss_ratio:2.10
allocator_rss_bytes:2781184
rss_overhead_ratio:1.57
rss_overhead_bytes:3022848
mem_fragmentation_ratio:4.38
mem_fragmentation_bytes:6422080
mem_not_counted_for_evict:124
mem_replication_backlog:1048576
mem_clients_slaves:0
mem_clients_normal:40992
mem_aof_buffer:128
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0
# Persistence
loading: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:2
rdb_bgsave_in_progress:0
rdb_last_save_time:1640598881
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:1
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:0
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:368640
module_fork_in_progress:0
module_fork_last_cow_size:0
aof_current_size:180
aof_base_size:92
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:0
# Stats
total_connections_received:1
total_commands_processed:66
instantaneous_ops_per_sec:0
total_net_input_bytes:1162
total_net_output_bytes:42814
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.04
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:459
total_forks:1
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
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:66
total_writes_processed:627
io_threaded_reads_processed:0
io_threaded_writes_processed:0
# Replication
role:slave
master_host:redis-master
master_port:6379
master_link_status:up
master_last_io_seconds_ago:7
master_sync_in_progress:0
slave_read_repl_offset:956
slave_repl_offset:956
slave_priority:100
slave_read_only:1
replica_announced:1
connected_slaves:0
master_failover_state:no-failover
master_replid:206c1c3c4914f0362f4621eb1f39fb9fee73cb73
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:956
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:956
# CPU
used_cpu_sys:2.347484
used_cpu_user:0.955842
used_cpu_sys_children:0.054092
used_cpu_user_children:0.063702
used_cpu_sys_main_thread:2.319998
used_cpu_user_main_thread:0.951005
# Modules
# Errorstats
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=2,expires=0,avg_ttl=0
'Database > Redis' 카테고리의 다른 글
[redis] 도커컴포즈로 레디스 마스터1 슬레이브2 구성 만들어보기 (2) | 2021.12.27 |
---|---|
[redis] 마스터와 슬레이브의 info replication 내용 살펴보기 (0) | 2021.12.27 |
[redis] cluster info vs info (레디스 명령어 내용 비교) (0) | 2021.12.27 |
[redis] 도커컴포즈로 레디스 클러스터 마스터 3개 만들기 (docker-compose) (0) | 2021.12.27 |
[redis] 도커컴포즈로 레디스 클러스터 마스터 5개 만들기 (docker-compose) (0) | 2021.12.27 |