- cluster-config-file : 만약에 여러 개의 cluster를 띄울 경우에는, 각 파일들이 하나의 폴더내에서 겹치지 않도록 설정하는 것이 필요
- cluster-node-timeout : 어느 정도 수준에서 fail-over에 처리를 판단할 것인지에 대한 기준정보임
- cluster-replica-validity-factor : master의 replica를 복제해올 때 선택하는 기준임
- 이 때, master와 통신한 지 오래된 replica 를 선택하게 되면 최근의 데이터를 읽어오지 않는다는 위험이 존재하게 된다. 따라서 이를 방지하기 위해 통신이 오래된 replica는 대상에서 제외 처리한다. (마스터 승격 대상에서 제외한다.)
- cluster-migration-barrier : 남은 replica에 대해서는 다른 master의 replica로 넘어갈 수 있는데, 이때 어느 정도를 master아래에 남아있어도 되는지를 판단하는 정보이다.
- cluster-require-full-coverage : default no임
- 일부 노드에 장애가 생기더라도 나머지 hash에 대해서는 동작하도록 하기 위함
- cluster-allow-read-when-down : default no임
- 클러스터가 정상이 아니면 Read도 못하게 하여 서비스를 중단시킴
- 가용성이 일관성보다 중요한 경우 YES로 둠
클러스터 구성해보기
실습 : redis 6대를 띄우되, port는 7000~7006번으로 한다.
- 3대는 master, 3대는 replica로 설정하자.
redis 를 설치해보기