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。
elasticsearch.yml 配置说明的更多相关文章
- ElasticSearch(八):elasticsearch.yml配置说明
集群名称:cluster.name: my-application确保在不同的环境中的集群的名称不重复,否则,节点可能会连接到错误的集群上 节点名称:node.name: node-1默认情况下,当节 ...
- elasticsearch.yml基本配置说明
一.基本配置 elasticsearch的config文件夹里面有两个配置文 件:elasticsearch.yml和logging.yml,第一个是es的基本配置文件,第二个是日志配置文件,es也是 ...
- elasticsearch按照配置时遇到的一些坑 [Failed to load settings from [elasticsearch.yml]]
这里整理几个空格引起的问题. 版本是elasticsearch-2.3.0 或者elasticsearch-rtf-master Exception in thread "main" ...
- Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected end of settings but encountered additional conte
D:\elasticsearch\elasticsearch-2.4.0\bin>elasticsearchException in thread "main" Settin ...
- elasticsearch.yml配置文件
Elasticsearch的配置文件在config文件夹下,其中有elasticsearch.yml.logging.yml两个配置文件,其中elasticsearch.yml是用来配置Ela ...
- 配置文件elasticsearch.yml详解
在es根目录下的config目录中有elasticsearch.yml配置文件,es加载使用的yml格式配置 17行:cluster.name: 自定义集群名称(强烈推荐默认名称elasticsear ...
- 【ElasticSearch】:elasticsearch.yml配置
ElasticSearch5的elasticsearch.yml配置 注意 elasticsearch.yml中的配置,冒号和后面配置值之间有空格 cluster.name: my-applicati ...
- Elasticsearch.yml
cluster.name: elasticsearch配置es的集群名称,默认是elasticsearch,es会自动发现在同一网段下的es,如果在同一网段下有多个集群,就可以用这个属性来区分不同的集 ...
- elasticsearch配置文件里的一些坑 [Failed to load settings from [elasticsearch.yml]]
这里整理几个空格引起的问题. 版本是elasticsearch-2.3.0 或者elasticsearch-rtf-master Exception in thread "main" ...
随机推荐
- redis缓存数据库的详解
1,什么是redis? Redis是完全开源免费的,遵守BSD协议,是一个高性能的key-value数据库 Redis与其他key-value缓存产品有以下三个特点: Redis支持数据的持久化,可以 ...
- Linux的进程优先级NI和PR到底有什么区别
Linux的进程优先级NI和PR到底有什么区别 - 51CTO.COM http://os.51cto.com/art/201605/511559.htm
- js闭包的本质
js之所以会有闭包,是因为js不同于其他规范的语言,js允许一个函数中再嵌套子函数,正是因为这种允许函数嵌套,导致js出现了所谓闭包. function a(){ function b(){ }; b ...
- 安卓输入子系统之inotify与epoll机制【学习笔记】【原创】
平台信息:内核:linux3.1.0系统:android5.0平台:tiny4412 作者:庄泽彬(欢迎转载,请注明作者) 说明: 韦老师的安卓视频学习笔记 一.在安卓的输入子系统中如何监听文件的产生 ...
- java实现io读取数据
ServletInputStream inputStream = request.getInputStream(); BufferedReader br = new BufferedReader(ne ...
- next数组求最小循环节
1.kmp产生的next数组: 最小循环节(长度)=len-next[len]; 证明: ----------------------- ----------------------- k m ...
- 并不对劲的manacher算法
有些时候,后缀自动机并不能解决某些问题,或者解决很麻烦.这时就有各种神奇的字符串算法了. manacher算法用来O(|S|)地求出字符串S的最长的回文子串的长度.这是怎么做到的呢? 并不对劲的暴力选 ...
- 【POJ 2152】 Fire
[题目链接] 点击打开链接 [算法] 同样是树形DP,但是比较难,笔者做这题看了题解 令f[i][j]表示在以i为根的子树中 1.在以i为根的子树中建一些消防站 2.在节点j必须建一个消防站 3.以i ...
- bzoj 2962 序列操作 —— 线段树
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=2962 维护 sum[i] 表示选 i 个的乘积和,合并两个子树就枚举两边选多少,乘起来即可: ...
- gerrit使用总结
1. 前言 最近在摸索git + gerrit代码审核的工作模式,需要安装gerrit服务器,经过一阵折腾,走了不少弯路,在此做下笔记,以便自己或者他人参考.有误的地方请指教. 我的环境如下: 环境 ...