Hi guys
I run elasticsearch on 8 nodes with 2 different rack-id for shard replication awareness.
i have 4 nodes on rack-1 and other 4 nodes on rack-2 and i have 1 master eligible node on each rack.
so i have 2 master nodes and 6 data nodes. it's ok when i start all 8 node and master node elect and every thing is fine! when i stop master node i expect that second master eligible elect as master and cluster works fine but i have this error:
" master not discovered or elected yet, an election requires a ..."
Here is my config in master A:
cluster.name: S-cluster
node.name: node-a-1
node.attr.rack_id: rack_one
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: site
discovery.seed_hosts: ["192.168.100.20", "192.168.100.21", "192.168.100.22", "192.168.100.23", "192.168.100.25", "192.168.100.26", "192.168.100.27", "192.168.100.28"]
cluster.initial_master_nodes: ["192.168.100.20", "192.168.100.25"]
node.master: true
node.data: true
cluster.routing.allocation.awareness.attributes: rack_id
and here is my data node config:
cluster.name: S-cluster
node.name: node-a-2
node.attr.rack_id: rack_one
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 192.168.100.21
discovery.seed_hosts: ["192.168.100.20", "192.168.100.21", "192.168.100.22", "192.168.100.23", "192.168.100.25", "192.168.100.26", "192.168.100.27", "192.168.100.28"]
cluster.initial_master_nodes: ["192.168.100.20", "192.168.100.25"]
node.master: false
node.data: true
and same config for master B and other data node! master IP is 192.168.100.20 and 192.168.100.25.
Thanks for your help.