Redis Sentinel 지원

안녕하세요,

몇 년 전에 센티넬 옵션을 제거하셨다는 것을 확인했습니다.

특별한 이유가 있으신가요?

PR을 만들면 받아주실 수 있을까요?

만약 그렇지 않다면, 원키 패칭(monkey patch)을 시도해 볼 텐데, 관련해서 추천해 주실 팁이 있으시면 알려주세요. 루비를 마지막으로 꽤 오래 만져본 적이 없어서요 :wink:

감사합니다!

이건 아마도 처음부터 작동하지 않았던 것 같습니다.

HA Redis의 책임을 Discourse 외부로 분리하고, HAProxy를 사용하여 트래픽을 마스터 또는 슬레이브로 라우팅하는 것이 좋습니다.

설정 예시 (마스터는 6379, 슬레이브는 6380 포트 사용)

listen redis_master
  bind 127.0.0.1:6379
  timeout client 30h
  timeout server 30h
  option tcp-check
  tcp-check connect
  tcp-check send AUTH\ *redis_password*\r\n
  tcp-check expect string +OK
  tcp-check send PING\r\n
  tcp-check expect string +PONG
  tcp-check send info\ replication\r\n
  tcp-check expect string role:master
  tcp-check send QUIT\r\n
  tcp-check expect string +OK
  server redis_data_0 10.10.10.10:6379 check inter 1s
  server redis_data_1 10.10.10.11:6379 check inter 1s

listen redis_slave
  bind 127.0.0.1:6380
  timeout client 30h
  timeout server 30h
  option tcp-check
  tcp-check connect
  tcp-check send AUTH\ *redis_password*\r\n
  tcp-check expect string +OK
  tcp-check send PING\r\n
  tcp-check expect string +PONG
  tcp-check send info\ replication\r\n
  tcp-check expect string role:slave
  tcp-check send QUIT\r\n
  tcp-check expect string +OK
  server redis_data_0 10.10.10.10:6379 check inter 1s
  server redis_data_1 10.10.10.11:6379 check inter 1s

제거된 코드는 실험 단계로 간주되었으며, 가까운 장래에 이를 지원할 계획이 없습니다.

거절인 것 같지만, 확실치는 않네요 :slight_smile:

(지금까지의 설명에 감사드립니다 :))

미안, 여기서는 플러그인이 더 나은 옵션이라고 생각해. sentinel은 우리한테서 제대로 작동한 적이 없었거든. 그래서 커뮤니티를 위해 핵심 제품에서 선택지로 제공하지 않는 쪽이 나을 것 같아.