we have 1 coordinating-node 1 master-node 5 data-nodes and 1 kibana.
we are planning to scale it up to 2 coordinating-nodes 3 master-node 30 data-nodes 2 kibana.
Only coodrinating node is esposed to kibana and logstash (master-node , Data-nodes are not expose all the request are processed by coordinating node)
Please suggest on following questions:
Is it possible to have multiple masters?
How does mutli-master setup work is it something like active passive kind of setup ? will one master-node be leader and other 2 are in standby ?
Can i have 2 coordinating nodes ?
How can we maintain HA for logstash
Q2: How does mutli-master setup work is it something like active passive kind of setup ? will one master-node be leader and other 2 are in standby ?
discovery.zen.ping.unicast.hosts: ["host1", "host2:port"]
R: 1) set cluster-name
2) set node-name
3) on elasticsearch instanses where will be master yo should set:
node.master: true
discovery.zen.ping.unicast.hosts: ["host2:port", "host3:port"]
minimum_master_nodes=2 https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html#master-node
Thanks for the response documentation is helpfull
Use case for logstash is we are currently running 2 logstash instances one for kafka and one for http input
We wanted to know can we have lostash for failover like if logstash is down 2nd one picks up with 0 downtime
logstash can work with several input, so you can in every instance of logstash handle input http traffic and read from kafka topics
for example, took 2 logstash instances working on (server1, server2):
http input
http input work on port for example 8085
so for HA you should use some Load Balancing proxy that redirect to one of available Logstash instances:
server1:8085 or server2:8085.
2) kafka input
in case of kafka i don't know how achieve HA of logstash, because if you run 2 instances of logstash then data will duplicate when reading from same topic. And you should implement some de-duplicate mechanism.
May be exist some configurations on kafka topics, limitations of max consumer connections.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.