elasticsearch.yml 配置說明


cluster.name: 指定node所屬的cluster。

node.name: 本機的hostname。

node.master: 是否可以被選舉為master節點。(true or false)

node.data: 是否為data node。(true or false)

node.attr.box_type: node所屬box類型。(hot or warm, 比如hot node用SSD磁盤,warm node用普通磁盤,然后把最近幾天的數據存hot node,時間較長的數據存warm node)。

node.attr.datacenter: 指定node所屬的DC。

 

network.host: 節點綁定的主機名或ip地址,並且會將改革節點通知集群中的其它節點。(default _local_)

script.engine.painless.inline.search: 是否支持painless腳本。plainless是elasticsearch支持的一種增刪改查語言,比之groovy更高效安全。(true or false)

bootstrap.memory_lock: 是否鎖住內存,避免交換(swapped)帶來的性能損失。

bootstrap.system_call_filter: 是否支持過濾掉系統調用。elasticsearch 5.2以后引入的功能,在bootstrap的時候check是否支持seccomp。

thread_pool.bulk.queue_size: 設置響應bulk請求的queue的大小。

 

indices.memory.index_buffer_size: 新建索引在內存中的buffer。超過buffer size就會觸發segment寫磁盤。

indices.recovery.max_bytes_per_sec: index在恢復過程中每秒可占用的最大傳輸帶寬。

indices.fielddata.cache.size: field data類型的數據加載到內存中可用的最大內存大小。field data常用語聚合,排序查詢。

indices.breaker.fielddata.limit: field data斷路器。在field data加載之前,預計算需要使用的堆內存的大小,如果超過這個設定值,斷路器會被觸發,從而保證不會OOM。

indices.breaker.request.limit: request斷路器。預計算完成查詢的其他部分(除了field data)需要的內存的大小。

indices.breaker.total.limit: 封裝了field data和request兩個斷路器,確保這兩個使用的總內存的大小。

 

cluster.routing.allocation.disk.threshold_enabled: 是否elasticsearch可以根據磁盤使用情況來決定是否繼續分配shard。

cluster.routing.allocation.disk.watermark.low: 控制磁盤最小使用率,default 85%。es在磁盤使用率達到85%的時候將會停止分配新的shard。

cluster.routing.allocation.disk.watermark.high: 控制磁盤的最大使用率,default 90%。在磁盤使用率達到90%的時候es將會relocate shard去其他的節點。

cluster.routing.allocation.node_initial_primaries_recoveries: 初始化數據恢復時,單節點並發恢復線程的個數。

cluster.routing.allocation.node_concurrent_outgoing_recoveries: 單節點上可並發恢復的outgoing的shard數量。

cluster.routing.allocation.node_concurrent_incoming_recoveries: 單節點上可並發恢復的incoming的shard的數量。

action.search.shard_count.limit: 搜索的shard number限制,超過設置的number的query請求會被拒絕。

 

discovery.zen.minimum_master_nodes: 達到最小的master候選者個數后才能開始選master。

discovery.zen.ping.unicast.hosts:為了加入集群,一個節點至少需要知道集群中可以當選master的node的主機名或ip地址。這個設置提供eligible master的ip地址數組。

http.max_initial_line_length: http地址訪問url的最大長度,默認為4kb。

http.max_content_length: http請求的最大內容大小。

xpack.security.transport.ssl.enabled:node之間進行transport請求是否需要SSL/TLS。

xpack.security.http.ssl.enabled:外部與es集群之間進行http請求是否需要SSL/TLS。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM