본문 바로가기
DB/엘라스틱서치

엘라스틱 서치 노드 or 서버 점검시

by devljy 2024. 11. 2.

빠르게 점검을 할 상황에 유용

특정 노드가 있는 서버를 스케일 업 하거나 , yml 등 속성파일을 수정 한뒤에 서버 재기동이 필요할 시 

 

 

1. 클러스터 샤드 재배치(reallocation) 임시 비활성화 

2. 서버 재부팅 또는 elastic search service 재기동

3. 클러스터 샤드 재배치(reallocation) 활성화

 

 

1.
PUT /_cluster/settings
{
    "transient":{
        "cluster.routing.allocation.enable": 
        "none"
    }
}

 

2. 

systemctl restart elastcicsearch

 

3. 

PUT /_cluster/settings
{
    "transient":{
        "cluster.routing.allocation.enable": 
         "All"
    }
}

 

 

'DB > 엘라스틱서치' 카테고리의 다른 글

es failover 테스트  (0) 2024.11.01
es 기본 설치 ( deb > ubuntu)  (0) 2024.11.01
기본 dsl  (0) 2024.10.31