requirepassword 는 설정하지 않아 패스워드 없이 진행하였음
- 구성 -
S1 : Master
S2 : Slave
1. S1 부터 작업을 하게 되어 S2 를 Master로 변경하였음
# redis-cli slaveof no one
2. S1 작업 완료 후 S1을 S2의 Slave로 변경
# redis-cli slaveof xxx.xxx.xxx.xxx(s2) 6379 # redis-cli config set repl-ping-slave-period 10 # redis-cli config set repl-timeout 60
3. info로 확인하면서 동기화가 다되었을 경우 S1을 다시 Master로 변경하였음
# redis-cli slaveof no one
4. S2 작업 완료 후 S2를 S1의 Slave로 변경
# redis-cli slaveof xxx.xxx.xxx.xxx(s1) 6379 # redis-cli config set repl-ping-slave-period 10 # redis-cli config set repl-timeout 60
5. info로 확인하면서 동기화가 잘되는지 확인하고 종료 하였음
처음 해보는 작업이라 인터넷으로 검색 후 진행하였음
댓글 없음:
댓글 쓰기