2013-04-22 3 views
-2

Amazon EC2에서 3 노드로 구성된 탄성 검색 클러스터 구성을 시도했습니다. 그러나 호출 후 UnavailableShardsException이 발생합니다. $type->addDocument($doc);UnavailableShardsException 탄성 검색 클러스터 구성

다음은 커스터의 3 노드 각각에 대한 구성입니다. 도와주세요 ! 클러스터가 작동하려면, 당신은 unicast 또는 EC2 discovery plugin 중 하나를 사용해야하므로

Node1 
===== 
cluster.name: MyCluster 
node.name: node1 
node.master: true 
node.data: true 
# index.number_of_shards: 5 //Not confugured this, to use the default value 5 
index.number_of_replicas: 2 
transport.tcp.port: 9300 
http.port: 9200 

Node2 
===== 
cluster.name: MyCluster 
node.name: node2 
node.master: false 
node.data: true 
# index.number_of_shards: 5 //Not confugured this, to use the default value 5 
index.number_of_replicas: 2 
transport.tcp.port: 9301 
http.port: 9201 

Node3 
===== 
cluster.name: MyCluster 
node.name: node3 
node.master: false 
node.data: true 
# index.number_of_shards: 5 //Not confugured this, to use the default value 5 
index.number_of_replicas: 2 
transport.tcp.port: 9302 
http.port: 9202 
+1

같은 EC2 인스턴스에서 3 개의 노드를 모두 실행하고 있습니까? – imotov

+0

아니요, 동일한 구성의 3 가지 EC2 인스턴스입니다. – Harikrishnan

답변

3

아마존 EC2는 멀티 캐스트를 지원하지 않습니다. 일반적으로 설정하기가 훨씬 쉽기 때문에 유니 캐스트로 시작하는 것이 좋습니다. 3 개의 노드가 모두 서로 다른 인스턴스에서 실행되므로 동일한 포트 (9300 및 9200)로 모두 구성 할 수 있습니다. logging.yml에서 다음 줄의 주석 처리를 제거하는 데 여전히 문제가 발생하면 세 서버를 모두 다시 시작하고 여기의 모든 세 서버에서 로그 파일에 대한 링크를 게시하십시오.

#discovery: TRACE