Here is the error in elasticsearch logs when docker image build with 2.3.1.
[2016-04-12 14:30:00,083][WARN ][rest.suppressed ] /_cluster/health Params: {pretty=true}
MasterNotDiscoveredException[null]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$5.onTimeout(TransportMasterNodeAction.java:226)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:804)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2016-04-12 14:30:51,440][WARN ][rest.suppressed ] /_cluster/health Params: {pretty=true}
MasterNotDiscoveredException[null]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$5.onTimeout(TransportMasterNodeAction.java:226)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:804)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Config File: elasticsearch.yml
cluster.name: ${ES_ENV_CLUSTER_NAME}
node.name: ${HOSTNAME}
path.conf: ${ES_ENV_PATH_CONF}
path.data: ${ES_ENV_PATH_DATA}
path.work: ${ES_ENV_PATH_WORK}
path.logs: ${ES_ENV_PATH_LOGS}
path.plugins: ${ES_ENV_HOME}/plugins
bootstrap.mlockall: true
http.port: 9200
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: [ "${ES_ENV_M1}:9300","${ES_ENV_M2}:9300","${ES_ENV_M3}:9300" ]
indices.memory.index_buffer_size: 50%
discovery.zen.fd.ping_timeout: 30s
indices.fielddata.cache.size: 25%
action.disable_delete_all_indices: true
indices.cluster.send_refresh_mapping: false
cluster.routing.allocation.cluster_concurrent_rebalance: 2
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: .90
cluster.routing.allocation.disk.watermark.high: .95
cluster.routing.allocation.node_concurrent_recoveries: 4
cluster.routing.allocation.node_initial_primaries_recoveries: 10
indices.store.throttle.max_bytes_per_sec: 200mb
threadpool.index.queue_size: 500
threadpool.bulk.queue_size: 500
http.max_content_length: 500mb
network.host: 0.0.0.0
Environment:
ES_ENV_PATH_LOGS=/es/logs
HOSTNAME=es03
ES_ENV_HOME=/usr/local/elasticsearch
ES_ENV_PATH_WORK=/es/work
ES_ENV_M1=es01
ES_ENV_M2=es02
ES_ENV_M3=es03
JAVA_HOME=/usr/lib/jvm/java-8-oracle
ES_ENV_PATH_PLUGINS=/usr/local/elasticsearch/plugins
ES_ENV_CONFIG=/es/config/elasticsearch.yml
ES_ENV_PATH_DATA=/es/data
ES_ENV_PATH_CONF=/es/config
ES_ENV_CLUSTER_NAME=es_test
Cluster Health when launched with 1.7.3:
elasticsearch@es03:/es/config$ curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
"cluster_name" : "es_test",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}