elasticsearch.yml常用配置

本文详细介绍了Elasticsearch集群的配置参数,包括节点名称、数据路径、网络设置及搜索慢日志阈值等关键配置项,对于理解Elasticsearch的工作原理及优化集群性能具有重要作用。

cluster.name: recomm_scorer_xs144_cluster

node.name: "10.2.34.144"

node.master: true

node.data: true

index.number_of_shards: 5

index.number_of_replicas: 2

path.conf: /opt/elasticsearch-1.6/config

path.data: /data/elasticsearch-1.6/data

path.work: /data/elasticsearch-1.6/work

path.logs: /data/elasticsearch-1.6/logs

path.plugins: /opt/elasticsearch-1.6/sys

network.bind_host: 0.0.0.0

network.publish_host: 10.2.34.144

network.host: 10.2.34.144

http.compression: true

http.compression_level: 3

discovery.zen.minimum_master_nodes: 3

discovery.zen.ping.timeout: 10s

discovery.zen.ping.multicast.enabled: false

discovery.zen.ping.unicast.hosts: ["10.2.34.144:9300", "10.2.34.145:9300", "10.2.34.146:9300", "10.2.34.147:9300", "10.2.34.148:9300"]

index.search.slowlog.threshold.query.warn: 10s

index.search.slowlog.threshold.query.info: 5s

index.search.slowlog.threshold.query.debug: 2s

index.search.slowlog.threshold.query.trace: 100ms

index.search.slowlog.threshold.fetch.warn: 1s

index.search.slowlog.threshold.fetch.info: 800ms

index.search.slowlog.threshold.fetch.debug: 500ms

index.search.slowlog.threshold.fetch.trace: 50ms

index.indexing.slowlog.threshold.index.warn: 10s

index.indexing.slowlog.threshold.index.info: 5s

index.indexing.slowlog.threshold.index.debug: 2s

index.indexing.slowlog.threshold.index.trace: 500ms

script.engine.groovy.inline.search: on


img_8725167f86e69a37606d6ea0aa84e2f5.png
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值