Hello,
My cluster has 3 master nodes. But during deployment, two nodes are not able to join cluster. Their log says "an election requires at least 2 nodes with ids" but only one is discovered and "not a quorum".
Then I tried to manually start a master node(on 10.158.112.146) hoping to form a quorum with the working master 113.17, with:
-e "cluster.initial_cluster_manager_nodes=10.158.113.17:9300" -e "discovery.seed_hosts=10.158.113.17:9300", but then I got
"master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [10.158.113.17:9300] to bootstrap a cluster: have discovered [{6f54aa8a47a5}{MBKRu7fWSe6XDSYDINANnw}{QEZgA7hvQruL0-KDijy6qA}{10.158.112.146}{10.158.112.146:9300}{m}{aws_availability_zone=us-east-1b, shard_indexing_pressure_enabled=true}, {93024391fa66}{ZcoJRj24R0u7HR41UewE0Q}{OGZjQoOaToKPkshdWz3IeA}{10.158.113.17}{10.158.113.17:9300}{m}{aws_availability_zone=us-east-1d, shard_indexing_pressure_enabled=true}, ...".
what confuses me is, it has already discovered "10.158.113.17:9300", which is the "must discover master-eligible nodes", why it still failed to discover?
I pass parameters in docker env variables, they are:
-e "bootstrap.memory_lock=true" \
-e "cloud.node.auto_attributes=true" \
-e "cluster.name=mycluster" \
-e "cluster.routing.allocation.awareness.attributes=aws_availability_zone" \
-e "discovery.ec2.tag.SearchName=mytag" \
-e "discovery.seed_providers=ec2" \
-e "network.publish_host=_ec2:privateIp_" \
-e "node.roles=master" \
-e "plugin.mandatory=discovery-ec2" \
-e "cluster.initial_master_nodes=10.158.113.17:9300" \
-e "discovery.seed_hosts=10.158.113.17:9300" \
Full discover log:
master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [10.158.113.17:9300] to bootstrap a cluster: have discovered [{6f54aa8a47a5}{MBKRu7fWSe6XDSYDINANnw}{QEZgA7hvQruL0-KDijy6qA}{10.158.112.146}{10.158.112.146:9300}{m}{aws_availability_zone=us-east-1b, shard_indexing_pressure_enabled=true}, {93024391fa66}{ZcoJRj24R0u7HR41UewE0Q}{OGZjQoOaToKPkshdWz3IeA}{10.158.113.17}{10.158.113.17:9300}{m}{aws_availability_zone=us-east-1d, shard_indexing_pressure_enabled=true}, {86733a8c6fae}{sFt9J5-9QUWIJGsaJNbrrw}{0uFourUbTsqrBO-DvXEuzw}{10.158.112.30}{10.158.112.30:9300}{m}{aws_availability_zone=us-east-1a, shard_indexing_pressure_enabled=true}, {f57c1dfb9b32}{B8td7hNZSTi91LpU9nlhBA}{OdwtvZCJTEebqd33y3vsNg}{10.158.112.201}{10.158.112.201:9300}{m}{aws_availability_zone=us-east-1b, shard_indexing_pressure_enabled=true}]; discovery will continue using [10.158.113.17:9300, 10.158.112.146:9300, 10.158.112.165:9300, 10.158.112.30:9300, 10.158.113.18:9300, 10.158.113.37:9300, 10.158.112.201:9300, 10.158.113.17:9300, 10.158.112.100:9300] from hosts providers and [{6f54aa8a47a5}{MBKRu7fWSe6XDSYDINANnw}{QEZgA7hvQruL0-KDijy6qA}{10.158.112.146}{10.158.112.146:9300}{m}{aws_availability_zone=us-east-1b, shard_indexing_pressure_enabled=true}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
Thank you.