码迷,mamicode.com
首页 > 其他好文 > 详细

ELK 学习笔记之 elasticsearch elasticsearch.yml配置概述

时间:2017-09-30 20:57:49      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:http协议   prim   mst   负载   数据恢复   ted   name   pre   aries   

elasticsearch.yml配置概述:

 

设置集群名字

cluster.name

 

定义节点名称

node.name

 

节点作为master,但是不负责存储数据,只是协调。

node.master: true

node.data: false

 

子节点,存储数据

node.master: false

node.data: true

 

该节点是一个负载均衡器,什么都不做

node.master: false

node.data: false

 

分片数

index.number_of_shards

 

副本数量

Index.number_of_replicas

 

配置文件所在位置

path.conf

 

数据存储位置

path.data

 

临时文件的位置

path.work

 

日志文件的路径

path.logs

 

插件位置

path.plugins

 

分配一定固定内存给es JVM

bootstrap.mlockall: true

 

节点绑定地址

network.bind_host:

 

和别的节点通讯地址

network.host

 

包括以上2个设置的内容

network.host

 

节点之间通讯端口

transport.top.port

 

是否压缩tcp传输时的数据

transport.top.compress

 

http端口

http.port

 

http传输数据的最大大小

http.max_content_length

 

是否启用http协议

http.enabled

 

持久化方式hdfs/local/s3

getway.type

 

控制集群在机器达到多少台正常启动之后进行恢复

getway.recover_after_nodes

 

启动成功后多少时间进行数据恢复

getway.recover_after_time

 

达到多少个节点,就立刻进行数据恢复,无需等待

getway.expected_nodes

 

设置节点的并发数量

cluster.routing.allocation.mode_initial_primaries_recoveries:

 

设置有多少个节点有mster候选资格

Discovery.zen.minimum_master_nodes

 

ELK 学习笔记之 elasticsearch elasticsearch.yml配置概述

标签:http协议   prim   mst   负载   数据恢复   ted   name   pre   aries   

原文地址:http://www.cnblogs.com/AK47Sonic/p/7615913.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!