zoukankan      html  css  js  c++  java
  • ELK 学习笔记之 elasticsearch elasticsearch.yml配置概述

    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

  • 相关阅读:
    centOS 开机自启动自己的脚本
    python SMTP 发送邮件 阿里企业邮箱、163邮箱 及535错误
    memcach 命令行
    python requests上传文件 tornado 接收文件
    Python memecache
    python Redis
    Slave_SQL_Running: No mysql同步故障解决方法
    mysql 数据库的主从同步
    Centos7 安装mysql5.7.16
    centos python2.6 升级到 python2.7
  • 原文地址:https://www.cnblogs.com/AK47Sonic/p/7615913.html
Copyright © 2011-2022 走看看