elasticsearch config is like this:
[NODE-1]
cluster.name: cluster-name
node.name: node-1
node.master: true
node.data: true
network.host: NODEIP
discovery.zen.ping.unicast.hosts: [NODE1IP, NODE2IP, NODE3IP, NODE4IP]
[NODE-2]
cluster.name: cluster-name
node.name: node-2
node.master: true
node.data: true
network.host: NODEIP
discovery.zen.ping.unicast.hosts: [NODE1IP, NODE2IP, NODE3IP, NODE4IP]
[NODE-3]
cluster.name: cluster-name
node.name: node-3
node.master: true
node.data: true
network.host: NODEIP
discovery.zen.ping.unicast.hosts: [NODE1IP, NODE2IP, NODE3IP, NODE4IP]
[NODE-4]
cluster.name: cluster-name
node.name: node-4
node.master: false
node.data: false
network.host: NODEIP
discovery.zen.ping.unicast.hosts: [NODE1IP, NODE2IP, NODE3IP, NODE4IP]
and logstash output config is like this
elasticsearch {
hosts => [NODE1IP:9200, NODE2IP:9200, NODE3IP:9200, NODE4IP:9200]
index => "apache-access-%{+YYYY-MM-dd}"
document_type => "log"
}
and I can find discovered all nodes in elastic logs.
But NODE4 is any requested from logstash
( I confirm by threadpool API ( /_cat/thread_pool))
ip bulk.active bulk.queue bulk.rejected
NODE1 8 9 24416
NODE2 8 80 13819
NODE3 0 0 16838
NODE4 0 0 0
I don't know why help plz