On Sunday, December 15, 2013 9:34:04 PM UTC, Boaz Leskes wrote:
Hi James,
Configuring the elasticsearch.yml is enough. I think your settings
"discovery.zen.minimum_master_nodes: 2" in your elasticsearch.yml are not
picked up - see log:
[2013-12-11 06:02:08,880][DEBUG][discovery.zen.elect ] [Black Tom
Cassidy] using minimum_master_nodes [-1]
Also if you have it set to 2 and you only have a single master - the node
should not start but start pinging searching for another
master eligible node...
This is what I would have expected from the documentation however the node
started happily...., for example on my test Elasticsearch cluster...
root@test-elastic01:/home/ao3elastic/log# grep
"discovery.zen.minimum_master_nodes:"
/home/ao3elastic/conf/elasticsearch_config.yml
discovery.zen.minimum_master_nodes: 1
discovery.zen.minimum_master_nodes: 2
root@test-elastic01:/home/ao3elastic/log# /etc/init.d/ao3elastic start
[ ok ] Starting Elasticsearch ao3elastic Server:.
root@test-elastic01:/home/ao3elastic/log# cat ao3elastic.log
[2013-12-15 22:39:34,367][INFO ][bootstrap ] max_open_files
[99967]
[2013-12-15 22:39:34,515][INFO ][node ] [Astaroth /
Asteroth] version[0.90.7], pid[26892], build[36897d0/2013-11-13T12:06:54Z]
[2013-12-15 22:39:34,515][INFO ][node ] [Astaroth /
Asteroth] initializing ...
[2013-12-15 22:39:34,522][INFO ][plugins ] [Astaroth /
Asteroth] loaded , sites
[2013-12-15 22:39:36,374][DEBUG][discovery.zen.ping.multicast] [Astaroth /
Asteroth] using group [224.2.2.4], with port [54328], ttl [3], and address
[null]
[2013-12-15 22:39:36,378][DEBUG][discovery.zen.ping.unicast] [Astaroth /
Asteroth] using initial hosts , with concurrent_connects [10]
[2013-12-15 22:39:36,380][DEBUG][discovery.zen ] [Astaroth /
Asteroth] using ping.timeout [3s], master_election.filter_client [true],
master_election.filter_data [false]
[2013-12-15 22:39:36,381][DEBUG][discovery.zen.elect ] [Astaroth /
Asteroth] using minimum_master_nodes [-1]
[2013-12-15 22:39:36,382][DEBUG][discovery.zen.fd ] [Astaroth /
Asteroth] [master] uses ping_interval [1s], ping_timeout [30s],
ping_retries [3]
[2013-12-15 22:39:36,386][DEBUG][discovery.zen.fd ] [Astaroth /
Asteroth] [node ] uses ping_interval [1s], ping_timeout [30s],
ping_retries [3]
[2013-12-15 22:39:37,864][INFO ][node ] [Astaroth /
Asteroth] initialized
[2013-12-15 22:39:37,865][INFO ][node ] [Astaroth /
Asteroth] starting ...
[2013-12-15 22:39:37,999][INFO ][transport ] [Astaroth /
Asteroth] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address
{inet[/10.10.8.26:9300]}
[2013-12-15 22:39:38,022][TRACE][discovery ] [Astaroth /
Asteroth] waiting for 30s for the initial state to be set by the discovery
[2013-12-15 22:39:38,032][TRACE][discovery.zen.ping.multicast] [Astaroth /
Asteroth] [1] sending ping request
[2013-12-15 22:39:39,545][TRACE][discovery.zen.ping.multicast] [Astaroth /
Asteroth] [1] sending ping request
[2013-12-15 22:39:41,050][TRACE][discovery.zen ] [Astaroth /
Asteroth] full ping responses: {none}
[2013-12-15 22:39:41,051][DEBUG][discovery.zen ] [Astaroth /
Asteroth] filtered ping responses: (filter_client[true],
filter_data[false]) {none}
[2013-12-15 22:39:41,063][INFO ][cluster.service ] [Astaroth /
Asteroth] new_master [Astaroth /
Asteroth][hRTd6QwHTfGAwucuSkNBCA][inet[/10.10.8.26:9300]]{master=true},
reason: zen-disco-join (elected_as_master)
[2013-12-15 22:39:41,113][TRACE][discovery ] [Astaroth /
Asteroth] initial state set from discovery
[2013-12-15 22:39:41,113][INFO ][discovery ] [Astaroth /
Asteroth] ao3elastic/hRTd6QwHTfGAwucuSkNBCA
[2013-12-15 22:39:41,771][INFO ][http ] [Astaroth /
Asteroth] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address
{inet[/10.10.8.26:9200]}
[2013-12-15 22:39:41,771][INFO ][node ] [Astaroth /
Asteroth] started
[2013-12-15 22:39:45,305][INFO ][monitor.jvm ] [Astaroth /
Asteroth] [gc][ParNew][7][2] duration [785ms], collections [1]/[1.4s],
total [785ms]/[1.3s], memory [267.1mb]->[112.8mb]/[35.9gb], all_pools
{[Code Cache] [1.2mb]->[1.3mb]/[48mb]}{[Par Eden Space]
[242.7mb]->[2.7mb]/[409.6mb]}{[Par Survivor Space]
[24.4mb]->[51.1mb]/[51.1mb]}{[CMS Old Gen] [0b]->[58.8mb]/[35.5gb]}{[CMS
Perm Gen] [29.2mb]->[29.3mb]/[166mb]}
root@test-elastic01:/home/ao3elastic/log# ps -ef | grep java
6008 26892 1 21 22:39 ? 00:00:17
/usr/lib/jvm/java-7-openjdk-amd64//bin/java -Xms36864m -Xmx36864m -Xmn512m
-Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError -Des.max-open-files=true -Delasticsearch
-Des.pidfile=/var/run/ao3elastic.pid
-Des.path.home=/usr/local/elasticsearch -cp
:/usr/local/elasticsearch/lib/elasticsearch-0.90.7.jar:/usr/local/elasticsearch/lib/:/usr/local/elasticsearch/lib/sigar/
-Des.node.data=true -Des.node.master=true
-Des.default.config=/home/ao3elastic/conf/elasticsearch_config.yml
-Des.default.path.home=/usr/local/elasticsearch/
-Des.default.path.logs=/home/ao3elastic/log
-Des.default.path.data=/home/ao3elastic/data
-Des.default.path.work=/home/ao3elastic/tmp
-Des.default.path.conf=/home/ao3elastic/conf
org.elasticsearch.bootstrap.Elasticsearch
--
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/57f14f51-bd47-45cb-a228-a41ae0afb764%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.