Hello Pat,
May I have a question about Elasticsearch cluster in PIO and UR.
I've implemented some Elasticsearch cluster consisted of 3 nodes on below options.
<elasticsearch.yml>
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: [“node 1”, “node 2", “node 3”]
And I writed PIO options below.
<pio-env.sh>
...
# Elasticsearch Example
PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=elasticsearch
PIO_STORAGE_SOURCES_ELASTICSEARCH_SCHEMES=http
PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME=/usr/local/elasticsearch
# The next line should match the ES
cluster.name in ES config
PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=my-search-cluster
# For clustered Elasticsearch (use one host/port if not clustered)
PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=node1,node2,node3
PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=9200,9200,9200
...
My questions are below.
1. I killed the Elasticsearch process in node 2 or node 3. PIO is well working. But when the Elasticsearch process in node 1 is killed, PIO is not working. Is it right?
2. I've changed PIO options below. I killed the Elasticsearch process in node 1 or node 3. PIO is well working. But when the Elasticsearch in node 2 is killed, PIO is not working. Is it right?
PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=node2,node1,node3
3. In my opinion, if first node configurd at PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS is killed, PIO is not working. Is it right? If yes, please let me know why it happened.
Thank you.