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
같은 EC2 인스턴스에서 3 개의 노드를 모두 실행하고 있습니까? – imotov
아니요, 동일한 구성의 3 가지 EC2 인스턴스입니다. – Harikrishnan