# ======================== Elasticsearch Configuration =========================
#----------------------------------Cluster-----------------------------------
Cluster.name:elastic
#------------------------------------Node------------------------------------
node.name:elastic134
#node. master:true
Node.data:true
#-----------------------------------Paths------------------------------------
Path.conf:/application/elasticsearch-2.1.1/config
Path.data:/application/elasticsearch-2.1.1/data
Path.logs:/application/elasticsearch-2.1.1/logs
Path.plugins:/application/elasticsearch-2.1.1/plugins
Path.work:/tmp
#-----------------------------------Memory-----------------------------------
Bootstrap.mlockall:true
#----------------------------------Http-----------------------------------
Http.enabled:true
http.host:192.168.0.134
http.bind_host:192.168.0.134
http.publish_host:192.168.0.134
http.port:9200
http.max_content_length:100mb
http.max_initial_line_length:4kb
http.max_header_size:8kb
Http.compression:true
Http.compression_level:3
http.cors.max-age:1728000
#-----------------------------------Index-------------------------------------
Index.number_of_shards:5
# CORS
#----------------------------------Network-----------------------------------
# relationship pushed to: through network.host----->network.bind_host------>network.publish_host
network.host:192.168.0.134
network.bind_host:192.168.0.134
network.publish_host:192.168.0.134
#----------------------------------Transport-----------------------------------
transport.host:192.168.0.134
transport.bind_host:192.168.0.134
transport.publish_host:192.168.0.134
Transport.tcp.connect_timeout:10s
Transport.ping_schedule:2s
transport.tcp.port:9300
transport.publish_port:9300
Transport.tcp.compress:true
#----------------------------------Descovery-----------------------------------
Discovery.zen.ping.multicast.enabled:false
Discovery.zen.ping.unicast.hosts: ["elastic137", "elastic138", "elastic134"]
Discovery.zen.join_timeout:3s
#配置当前集群中最少的主节点, for a clustered environment with more than two nodes, the recommended configuration is greater than 1.
Discovery.zen.minimum_master_nodes:2
Ping_interval:1
Ping_timeout:15
Ping_retries:3
#----------------------------------Gateway-----------------------------------
Gateway.recover_after_nodes:3
#----------------------------------Various-----------------------------------
Action.destructive_requires_name:true
This article from the "Do not ask for the best, only better" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1765142
Elasticsearch configuration file