美文网首页
Elasticsearch的配置说明

Elasticsearch的配置说明

作者: 代码的搬运工 | 来源:发表于2019-12-15 20:47 被阅读0次

    集群名称:

    cluster.name: my-application

    节点名称:

    node.name: node-1

    节点描述:

    node.rack: r1

    索引存储位置:

    path.data: /path/to/data

    日志存储位置:

    path.logs: /path/to/logs

    内存分配模式:

    bootstrap.mlockall: true

    绑定的网卡IP

    netword.host: 192.168.0.1

    http协议端口:

    http.port: 9200

    开发发现新节点的IP地址:

    discovery.zen.ping.unicast.hosts: ["host1", "host2"]

    最多发现主节点的个数:

    discovery.zen.minimum_master_nodes: 3

    当重启集群节点后最少启动N个节点后开始做恢复:

    gateway.recover_after_nodes: 3

    在一台机器上最多启动的节点数:

    node.max_local_storage_nodes: 1

    当删除一个索引的时候,需要指定具体索引的名称:

    action.destructive_requires_name: true

    相关文章

      网友评论

          本文标题:Elasticsearch的配置说明

          本文链接:https://www.haomeiwen.com/subject/yislnctx.html