Hiho,
due to an elasticsearch installation on hardware rather than on virtual
machines, I'm running 1 client-node (master:false, data:false) and 2
data-master nodes (master:true, data:true).
the two data-master nodes listen on 0.0.0.0 and without a configured port
where
- node1 is automatically listening on port 9300 and
- node2 is listening on port 9301.
Now I'm implementing a rolling restart and run into the split-brain
problem, where
- node1 stops listening on 9300, node2 elects himself to the master still
listening on port 9301 - when starting node1 again, it does not see the cluster anymore, it elects
himself as a master too, it doesn't seem to check the port range 9300-9400
So what would be the right way to configure elasticsearch for not running
into the splitbrain problem.
Any help is appreciated.
Best...
Uwe
this is the corresponding log output with changed hostnames and changed
node names
startup node1
[2015-03-25 11:35:00,889][INFO ][transport ] [node1]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address
{inet[/10.0.0.123:9300]}
[2015-03-25 11:35:01,214][INFO ][discovery ] [node1]
chef-test/PPrAcCFuRbitjRyL9v0Dnw
startup node2
[2015-03-25 11:35:05,374][INFO ][transport ] [node2]
bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address
{inet[/10.0.0.123:9301]}
[2015-03-25 11:35:05,709][INFO ][discovery ] [node2]
chef-test/9XW7aeBMSIq0LAr1jumuow
[2015-03-25 11:35:20,203][INFO ][cluster.service ] [node2]
new_master
[node2][9XW7aeBMSIq0LAr1jumuow][host1][inet[/10.0.0.123:9301]]{aws_availability_zone=eu-west-1b,
master=true}, reason: zen-disco-join (elected_as_master)
[2015-03-25 11:35:20,260][INFO ][cluster.service ] [node2] added
{[node1][PPrAcCFuRbitjRyL9v0Dnw][host1][inet[/10.0.0.123:9300]]{aws_availability_zone=eu-west-1b,
master=true},}, reason: zen-disco-receive(join from
node[[node1][PPrAcCFuRbitjRyL9v0Dnw][host1][inet[/10.0.0.123:9300]]{aws_availability_zone=eu-west-1b,
master=true}])
stop node1, log on node2
[2015-03-25 11:35:52,660][INFO ][cluster.service ] [node2] removed
{[node1][PPrAcCFuRbitjRyL9v0Dnw][host1][inet[/10.0.0.123:9300]]{aws_availability_zone=eu-west-1b,
master=true},}, reason:
zen-disco-node_left([node1][PPrAcCFuRbitjRyL9v0Dnw][host1][inet[/10.0.0.123:9300]]{aws_availability_zone=eu-west-1b,
master=true})
start node1, log on node1
[2015-03-25 11:38:36,043][INFO ][transport ] [node1]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address
{inet[/10.0.0.123:9300]}
[2015-03-25 11:38:36,156][INFO ][discovery ] [node1]
chef-test/iqurXSk9RNuf7YWUGHpFKg
[2015-03-25 11:38:43,829][INFO ][cluster.service ] [node1]
new_master
[node1][iqurXSk9RNuf7YWUGHpFKg][host1][inet[/10.0.0.123:9300]]{aws_availability_zone=eu-west-1b,
master=true}, reason: zen-disco-join (elected_as_master)
log on node2 doesn't change of course during startup of node1
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/504348af-0cf7-4192-a4c0-66cc38ca2413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.