zoukankan      html  css  js  c++  java
  • 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。

  • 相关阅读:
    程序员佛祖保佑无bug、发发发 -注释代码
    27 友盟项目--azkaban资源调度
    26 友盟项目--数据可视化
    25 友盟项目--sqoop从hive导出数据到mysql
    24 友盟项目--优化-flume限速拦截、flume自定义源防丢失--改造exec源守护线程监控目录(防丢失)redis维护key(去重)
    23 友盟项目--sparkstreaming对接kafka、集成redis--从redis中查询月留存率
    22 友盟项目--sparkstreaming对接kafka、集成redis--从redis中存储用户使用app的最小时间戳min , 最大时间戳max
    21 友盟项目--统计连续活跃用户、近期流失用户、留存用户--创建表并插入选择出的数据
    20 友盟项目--统计月活率、沉默用户、周回流用户--创建表并插入选择出的数据
    19 友盟项目--统计新增用户---日新增、周新增、月新增--创建表并插入选择出的数据
  • 原文地址:https://www.cnblogs.com/guoguochong/p/9881929.html
Copyright © 2011-2022 走看看