• 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。

  • 相关阅读:
    SQL Server执行计划的理解
    SQL Server Profiler工具
    利用SQL Profiler处理开销较大的查询
    查询开销
    详解索引连接类型
    详解执行计划
    数据库引擎调整顾问
    six.moves的用法
    ※数据结构※→☆非线性结构(tree)☆============二叉树 顺序存储结构(tree binary sequence)(十九)
    C++ 线程的创建,挂起,唤醒,终止
  • 原文地址:https://www.cnblogs.com/guoguochong/p/9881929.html
Copyright © 2020-2023  润新知