From 816549c3b6b444b36da16aee169221d04980a664 Mon Sep 17 00:00:00 2001 From: AlfonsoRBJ Date: Wed, 4 Sep 2019 11:26:06 +0200 Subject: [PATCH] add minimun_master_nodes --- elasticsearch/config/10-config_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/config/10-config_cluster.sh b/elasticsearch/config/10-config_cluster.sh index 1e200c8d..51924331 100644 --- a/elasticsearch/config/10-config_cluster.sh +++ b/elasticsearch/config/10-config_cluster.sh @@ -13,7 +13,6 @@ then # Set the cluster.name and discovery.zen.minimun_master_nodes variables sed -i 's:cluster.name\: "docker-cluster":cluster.name\: "'$CLUSTER_NAME'":g' $elastic_config_file - sed -i 's:discovery.zen.minimum_master_nodes\: 1:discovery.zen.minimum_master_nodes\: '$CLUSTER_NUMBER_OF_MASTERS':g' $elastic_config_file # Add the cluster configuration echo " @@ -31,6 +30,7 @@ bootstrap: discovery: zen: ping.unicast.hosts: ${CLUSTER_DISCOVERY_SERVICE} + minimum_master_nodes: ${CLUSTER_NUMBER_OF_MASTERS} " >> $elastic_config_file fi