elasticsearch.yml配置文件
# ---------------------------------- Cluster -----------------------------------# 配置es的集群名称,默认是elasticsearch,es会自动发现在同一网段下的es,如果在同一网段下有多个集群,就可以用这个属性来区分不同的集群cluster.name: elasticsearch## ------------------------------------ Node ------------------------------------# 节点名,默认随机指定一个name列表中名字,该列表在es的jar包中config文件夹里name.txt文件中,其中有很多作者添加的有趣名字node.name: "Franz Kafka"## 指定该节点是否有资格被选举成为node,默认是true,es是默认集群中的第一台机器为master,如果这台机挂了就会重新选举masternode.master: true## 指定该节点是否存储索引数据,默认为truenode.data: true## ------------------------------------ Index -----------------------------------# 设置默认索引分片个数,默认为5片index.number_of_shards: 5## 设置默认索引副本个数,默认为1个副本index.number_of_replicas: 1## ----------------------------------- Paths ------------------------------------# 设置配置文件的存储路径,默认是es根目录下的config文件夹# path.conf: /path/to/conf## 设置索引数据的存储路径,默认是es根目录下的data文件夹,可以设置多个存储路径,用逗号隔开,例:# path.data: /path/to/data1,/path/to/data2# path.data: /path/to/data## 设置日志文件的存储路径,默认是es根目录下的logs文件夹# path.logs: /path/to/logs## 设置临时文件的存储路径,默认是es根目录下的work文件夹# path.work: /path/to/work## 设置插件的存放路径,默认是es根目录下的plugins文件夹# path.plugins: /path/to/plugins## ----------------------------------- Memory -----------------------------------# 设置为true来锁住内存。因为当jvm开始swapping时es的效率会降低,所以要保证它不swap,# 可以把ES_MIN_MEM和ES_MAX_MEM两个环境变量设置成同一个值,并且保证机器有足够的内存分配给es。# 同时也要允许elasticsearch的进程可以锁住内存,linux下可以通过`ulimit -l unlimited`命令bootstrap.mlockall: true## ---------------------------------- Network -----------------------------------# 设置绑定的ip地址,可以是ipv4或ipv6的,默认为0.0.0.0# network.bind_host: 192.168.0.1## 设置其它节点和该节点交互的ip地址,如果不设置它会自动判断,值必须是个真实的ip地址# network.publish_host: 192.168.0.1## 这个参数是用来同时设置bind_host和publish_host上面两个参数# network.host: 192.168.0.1## 设置节点间交互的tcp端口,默认是9300transport.tcp.port: 9300## 设置对外服务的http端口,默认为9200http.port: 9200## 设置是否压缩tcp传输时的数据,默认为false,不压缩transport.tcp.compress: true## 设置内容的最大容量,默认100mbhttp.max_content_length: 100mb## 是否使用http协议对外提供服务,默认为true,开启http.enabled: true## ---------------------------------- Gateway -----------------------------------# gateway的类型,默认为local即为本地文件系统,可以设置为本地文件系统,分布式文件系统,hadoop的HDFS,和amazon的s3服务器gateway.type: local## 设置集群中N个节点启动时进行数据恢复,默认为1# gateway.recover_after_nodes: 1## 设置初始化数据恢复进程的超时时间,默认是5分钟# gateway.recover_after_time: 5m## 设置这个集群中节点的数量,默认为2,一旦这N个节点启动,就会立即进行数据恢复(无需等待 recover_after_time 过期)# gateway.expected_nodes: 2## ----------------------------- Recovery Throttling ----------------------------# 初始化数据恢复时,并发恢复线程的个数,默认为4# cluster.routing.allocation.node_initial_primaries_recoveries: 4## 添加删除节点或负载均衡时并发恢复线程的个数,默认为4# cluster.routing.allocation.node_concurrent_recoveries: 2## 设置数据恢复时限制的带宽,如入100mb,默认为0,即无限制indices.recovery.max_size_per_sec: 20mb## 设置这个参数来限制从其它分片恢复数据时最大同时打开并发流的个数,默认为5indices.recovery.concurrent_streams: 5## --------------------------------- Discovery ----------------------------------# 设置这个参数来保证集群中的节点可以知道其它N个有master资格的节点。默认为1,对于大的集群来说,可以设置大一点的值(2-4)discovery.zen.minimum_master_nodes: 1## 设置集群中自动发现其它节点时ping连接超时时间,默认为3秒,对于比较差的网络环境可以高点的值来防止自动发现时出错discovery.zen.ping.timeout: 3s## 设置是否打开多播发现节点,默认是truediscovery.zen.ping.multicast.enabled: true## 设置集群中master节点的初始列表,可以通过这些节点来自动发现新加入集群的节点# discovery.zen.ping.unicast.hosts: ["host1", "host2:port", "host3[portX-portY]"]## ---------------------------------- Slow Log ----------------------------------# 下面是一些查询时的慢日志参数设置##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: 500ms##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: 200ms##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## --------------------------------- GC Logging ---------------------------------##monitor.jvm.gc.young.warn: 1000ms#monitor.jvm.gc.young.info: 700ms#monitor.jvm.gc.young.debug: 400ms##monitor.jvm.gc.old.warn: 10s#monitor.jvm.gc.old.info: 5s#monitor.jvm.gc.old.debug: 2s## ---------------------------------- Security ----------------------------------# 是否启用JSONP,默认禁用# http.jsonp.enable: false#
elasticsearch.yml配置文件的更多相关文章
- 【elasticsearceh】elasticsearch.yml配置文件详解
主要内容如下: cluster.name: elasticsearch 配置es的集群名称,默认是elasticsearch,es会自动发现在同一网段下的es,如果在同一网段下有多个集群,就可以用这个 ...
- 配置文件elasticsearch.yml详解
在es根目录下的config目录中有elasticsearch.yml配置文件,es加载使用的yml格式配置 17行:cluster.name: 自定义集群名称(强烈推荐默认名称elasticsear ...
- elasticsearch配置文件(elasticsearch.yml)详解
来自:http://www.searchtech.pro/articles/2013/02/18/1361194291548.html elasticsearch的config文件夹里面有两个配置文 ...
- elasticsearch配置文件里的一些坑 [Failed to load settings from [elasticsearch.yml]]
这里整理几个空格引起的问题. 版本是elasticsearch-2.3.0 或者elasticsearch-rtf-master Exception in thread "main" ...
- Elasticsearch.yml
cluster.name: elasticsearch配置es的集群名称,默认是elasticsearch,es会自动发现在同一网段下的es,如果在同一网段下有多个集群,就可以用这个属性来区分不同的集 ...
- elasticsearch.yml基本配置说明
一.基本配置 elasticsearch的config文件夹里面有两个配置文 件:elasticsearch.yml和logging.yml,第一个是es的基本配置文件,第二个是日志配置文件,es也是 ...
- ELK 学习笔记之 elasticsearch elasticsearch.yml配置概述
elasticsearch.yml配置概述: 设置集群名字 cluster.name 定义节点名称 node.name 节点作为master,但是不负责存储数据,只是协调. node.master: ...
- 启动elasticsearch的时候报出Exception in thread "main" SettingsException[Failed to load settings from /usr/local/elasticsearch/config/elasticsearch.yml]; nested: MarkedYAMLException[while scanning a simple ke
故障现象: [elasticsearch@tiantianml- ~]$ /usr/local/elasticsearch/bin/elasticsearch Exception in thread ...
- elasticsearch按照配置时遇到的一些坑 [Failed to load settings from [elasticsearch.yml]]
这里整理几个空格引起的问题. 版本是elasticsearch-2.3.0 或者elasticsearch-rtf-master Exception in thread "main" ...
随机推荐
- LiteIDE 在 Windows 下为 Go 语言添加智能提示代码补全
本文以 Windows 7 64 位为环境,go1.4.2.windows-amd64 和 liteidex27.2.1.windows-qt5 为例. 成功搭建开发环境后,发现 LiteIDE 没有 ...
- 内存优化总结:ptmalloc、tcmalloc和jemalloc(转)
转载于:http://www.cnhalo.net/2016/06/13/memory-optimize/ 概述 需求 系统的物理内存是有限的,而对内存的需求是变化的, 程序的动态性越强,内存管理就越 ...
- orocos_kdl学习(二):KDL Tree与机器人运动学
KDL(Kinematics and Dynamics Library)中定义了一个树来代表机器人的运动学和动力学参数,ROS中的kdl_parser提供了工具能将机器人描述文件URDF转换为KDL ...
- [Done]SnowFlake生成Long类型主键返回前台过长导致精度缺失的问题
问题描述: 在开发过程中,项目的主键生成器是SnowFlake,其生成的long主键是28位, 但是js中Long的最大值:https://blog.csdn.net/sunmerZeal/artic ...
- javascript验证QQ号、邮箱和手机号码
//验证QQ号码5-11位 function isQQ(qq) { var filter = /^\s*[.0-9]{5,11}\s*$/; if (!filter.test(qq)) { retur ...
- 启用phpstorm代码提示功能
参考:http://www.dawnfly.cn/article-1-331.html mac下实际上将省电禁用即可
- 公司Docker环境配置
1.安装最新的docker:$ curl -fsSL get.docker.com -o get-docker.sh$ sudo sh get-docker.sh 2.安装docker-compose ...
- 菜鸟要做架构师(二)——java性能优化之for循环
完成同样的功能,用不同的代码来实现,性能上可能会有比较大的差别,所以对于一些性能敏感的模块来说,对代码进行一定的优化还是很有必要的.今天就来说一下java代码优化的事情,今天主要聊一下对于for(wh ...
- 安装astrixx firefox插件
以上步骤适用于firefox 45.0.1. 将astrixx的firefox插件下载到本地,这个插件的下载地址很难找...全名是astrixx proxy switcher about:config ...
- JAVA(四)类集/枚举
成鹏致远 | lcw.cnblog.com |2014-02-04 JAVA类集 1.认识类集 类集的作用 类集实际上就是一个动态的对象数组,与一般的对象数组不同,类集中的对象内容可以任意扩充 类集的 ...