배우고 있습니다/elastic-search
[Elastic Search ] unexpected error while indexing monitoring document / Request Timeout after 30000m 오류
유헤
2019. 4. 1. 18:10
키바나에서 모니터링을 들어가려고 하니, 오류가 뜨면서 안됬습니다.
Time Range를 last 1 hour가 아닌 24 hour 전이나 7 days 로 바꾸면서
어느 시점부터 모니터링이 안됬는지 체크 했습니다.
elastic-search/bin 에 들어가 nohup.out 으로 기록해둔 로그를 보니
unexpected error while indexing monitoring document
와 같이 에러 메세지를 띄우고 있었습니다.
이 원인은 모니터링 인덱싱중 오류가 발생했다는 것인데,
무엇이 원인일까 조사해보니
PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}
으로 설정을 해뒀었습니다.
PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.enable": "all"
}
}
다시 all 로 바꿔주면 정상적으로 복구가 됩니다.