마스터 1대와 슬레이브 2대로 구성돼있다.
마스터의 info replication
127.0.0.1:6379> info replication
# Replication
role:master
connected_slaves:2
slave0:ip=192.168.32.3,port=6379,state=online,offset=1166,lag=1
slave1:ip=192.168.32.4,port=6379,state=online,offset=1180,lag=0
master_failover_state:no-failover
master_replid:206c1c3c4914f0362f4621eb1f39fb9fee73cb73
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:1180
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:1180
슬레이브1의 info replication
127.0.0.1:6379> info replication
# Replication
role:slave
master_host:redis-master
master_port:6379
master_link_status:up
master_last_io_seconds_ago:0
master_sync_in_progress:0
slave_read_repl_offset:1222
slave_repl_offset:1222
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:1222
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:1222
슬레이브2의 info replication
127.0.0.1:6379> info replication
# Replication
role:slave
master_host:redis-master
master_port:6379
master_link_status:up
master_last_io_seconds_ago:0
master_sync_in_progress:0
slave_read_repl_offset:1264
slave_repl_offset:1264
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:1264
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:1
repl_backlog_histlen:1264
'Database > Redis' 카테고리의 다른 글
[redis] 레디스 센티널의 info 내용 살펴보기 (0) | 2021.12.27 |
---|---|
[redis] 도커컴포즈로 레디스 마스터1 슬레이브2 구성 만들어보기 (2) | 2021.12.27 |
[redis] 마스터와 슬레이브의 info 명령어 내용 비교 (0) | 2021.12.27 |
[redis] cluster info vs info (레디스 명령어 내용 비교) (0) | 2021.12.27 |
[redis] 도커컴포즈로 레디스 클러스터 마스터 3개 만들기 (docker-compose) (0) | 2021.12.27 |