# ======================== 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 -----------------------------------
# 关系推到: 通过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
#配置当前集群中最少的主节点,对于多于两个节点的集群环境,建议配置大于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