[이슈] elasticsearch replica 가 동작하지 않음

index에 replica 설정이 되지 않는 이슈가 있음



아래의 명령을 수행 하면  allocation에 대한 정보가 나옴

GET /_cluster/allocation/explain?pretty

위 정보를 확인 하여 원인 파악


원인은 elasticsearch upgrade 시 io 지연을 줄이기 위해 수행 하였던 아래의 api가 문제가 됨

PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "primaries"
  }
}


아래와 같이 api를 호출하면 풀림

PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": null
  }
}

현재는 아래와 같이 green이 됨




댓글

이 블로그의 인기 게시물

Spring Batch - JobParameters Default Value 만들기

Hsqldb Server 재기동 시 오류