Elasticsearch configuration file

Source: Internet
Author: User





# ======================== 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.