프로그래밍/redis

sentinel 환경 모니터링

메이슨김 2023. 10. 4. 19:59

마스터 서버 확인

./src/redis-cli 
127.0.0.1:6379> auth 패스워드
127.0.0.1:6379> info

마스터 서버에서 실행하면 sentinel 끼리 통신하는 로그 중간에 레디스 명령어가 출력됨.

./src/redis-cli -a 패스워드 monitor

"PING"
"PING"
"PUBLISH" "__sentinel__:hello" 
"GET" "key"
"PING"
"PUBLISH" "__sentinel__:hello"

 

반응형