[elasticsearch] 실행시 초기화 실패 해결하기
elasticsearch 실행시 master를 찾는 작업을 진행하고 때로는 실행이 안되는 경우가 있다.
그 이유는 elasticsearch의 기본 설정은 멀티캐스트로 되어 있어, master 를 결정하는 작업을 진행하기 때문이다.
################################## Discovery ##################################
# Discovery infrastructure ensures nodes can be found within a cluster
# and master node is elected. Multicast discovery is the default.
....
# 1. Disable multicast discovery (enabled by default):
#
#discovery.zen.ping.multicast.enabled: false
그래서, 아래와 같이 discovery.zen.ping.multicast.enabled을 false로 변경한다. master찾는 클러스터링을 하지 않아도 된다.
discovery.zen.ping.multicast.enabled: false
이상한 로그가 발생하면 위의 부분을 의심하는 것도 좋다.
[DEBUG][action.index ] [node_1] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
또는
detecting master failed