// 메인터넌스 종료 후 평소에
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.exclude._ip": ""
},
"transient": {
"cluster.routing.allocation.exclude._ip": ""
}
}
// 보내야할 떄
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.exclude._ip": "192.168.xxx.xxx"
},
"transient": {
"cluster.routing.allocation.exclude._ip": "192.168.xxx.xxx,192.168.xxx.xxx"
}
}
보통 온프로미스 환경에서 해당 노드의 하드디스크나 메모리나 맛이가거나 ^ㅁ^
IDC에 특정 랙에 있는 노드가 죽어버렸을 때, 다른 샤드에 이전 복제나 신규 인덱스의 샤드가 생성되는것을 방지 하기 위해 씀.
transient는 노드 재부팅되면 사라지는 일회성 persistent는 영속성이 있는데, 둘다 써주는게 안전빵.
_ip 말고 name 도되고 group도 되는걸로 알고는 있음.
'몰라그거무서운거 > elk or kafka' 카테고리의 다른 글
Elasticsearch linux 설정 조각 (0) | 2021.01.14 |
---|---|
엘라스틱서치 6.3 무따기(3) (0) | 2018.07.02 |
엘라스틱서치 6.3 무따기(2) (0) | 2018.07.02 |
엘라스틱서치 6.3 무따기. (0) | 2018.06.18 |