I can confirm that setting es.discovery.zen.minimum_master_nodes on the
command line looks as if it works unlike the setting in the config file.
Thank you Brian that looks like a workable work around.
I have additionally downloaded the deb file and the binaries and libs are
identical to my repackaged version
I have added the following to my defaults section and this looks like it
works.
Grab the number of hosts
HOSTS=grep discovery.zen.ping.unicast.hosts: $CONF_FILE | grep -v "^#" | awk -F: '{print $2}' | sed -e 's/\[//' -e 's/\]//'
NHOSTS=$(echo $(echo $HOSTS | sed "s/[,]/ /g" | wc -w))
MIN_MASTERS=$((($NHOSTS / 2) + 1))
Additional Java OPTS
ES_JAVA_OPTS="-Des.max-open-files=true
-Des.discovery.zen.minimum_master_nodes=$MIN_MASTERS"
And the log.
[2013-12-16 18:33:08,480][INFO ][bootstrap ] max_open_files
[99967]
[2013-12-16 18:33:08,617][INFO ][node ] [Batragon]
version[0.90.7], pid[1450], build[36897d0/2013-11-13T12:06:54Z]
[2013-12-16 18:33:08,617][INFO ][node ] [Batragon]
initializing ...
[2013-12-16 18:33:08,624][INFO ][plugins ] [Batragon]
loaded [], sites []
[2013-12-16 18:33:10,316][DEBUG][discovery.zen.ping.multicast] [Batragon]
using group [224.2.2.4], with port [54328], ttl [3], and address [null]
[2013-12-16 18:33:10,320][DEBUG][discovery.zen.ping.unicast] [Batragon]
using initial hosts [], with concurrent_connects [10]
[2013-12-16 18:33:10,321][DEBUG][discovery.zen ] [Batragon]
using ping.timeout [3s], master_election.filter_client [true],
master_election.filter_data [false]
[2013-12-16 18:33:10,322][DEBUG][discovery.zen.elect ] [Batragon]
using minimum_master_nodes [1]
[2013-12-16 18:33:10,324][DEBUG][discovery.zen.fd ] [Batragon]
[master] uses ping_interval [1s], ping_timeout [30s], ping_retries [3]
[2013-12-16 18:33:10,328][DEBUG][discovery.zen.fd ] [Batragon]
[node ] uses ping_interval [1s], ping_timeout [30s], ping_retries [3]
[2013-12-16 18:33:11,617][INFO ][node ] [Batragon]
initialized
[2013-12-16 18:33:11,617][INFO ][node ] [Batragon]
starting ..
--
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/f0c8749f-242a-4700-8575-db0c77264708%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.