I tried creating slider app-package for ElasticSearch, and able to do it
for single node ES cluster. It works for single instance of a component.

But facing some issue when forming a cluster of 2 or more nodes for which I
need to have master host and port details to be available in the
elasticsearch.yml which I am not able to create it properly.

Consider am having 2 components for this, ELASTICSEARCHMASTER (3 instances)
and ELASTICSEARCHWORKER (2 instances)

To form a cluster, I need to have a property named

"discovery.zen.ping.unicast.hosts":"ES_MASTER_HOST_1:TCP_PORT_1,
ES_MASTER_HOST_2:TCP_PORT_2, ES_MASTER_HOST_2:TCP_PORT_3"

This config is required for all instances for both the components as well,
how do I do it? I tried with some combination, but could not get the
correct one which I need.

If only hostnames, then able to do it using ${ELASTICSEARCHMASTER_HOST}
which populates all 3 master hosts, but I want to populate it with hosts +
port as well.

################### app-config.json ###################

"site.global.master_tcp_port": "${ELASTICSEARCHMASTER.ALLOCATED_PORT}",

"site.elasticsearch.discovery.zen.ping.unicast.hosts": "??",
################### app-config.json ###################

Thanks,
Chackra

Reply via email to