zoukankan      html  css  js  c++  java
  • elasticsearch 7.2 集群节点配置

    conf/elasticsearch.yml对其修改,在下面添加修改:

    主节点的配置

    http.cors.enabled: true
    http.cors.allow-origin: "*"
    cluster.name: cluster1
    node.name: slave
    node.master: true
    network.host: 127.0.0.1

    配置第二个节点

    cluster.name: cluster1
    node.name: slave1
    network.host: 127.0.0.1
    http.port: 8200

    配置第三个节点

    cluster.name: cluster1
    node.name: slave2
    network.host: 127.0.0.1
    http.port: 7200
    discovery.zen.ping.unicast.hosts: ["127.0.0.1"]

     常用查询命令:

    查看集群进程状态:

    curl -u elastic:{password} -X GET "172.18.54.20:9200/_nodes/stats/process?pretty"

    检查集群状态:
    curl -u elastic:{password} -X GET "172.18.54.20:9200/_nodes/stats?pretty"

    查看ES集群健康状态
    curl -u elastic:{password} -X GET "172.18.54.20:9200/_cluster/health?pretty"

    curl -u elastic:{password} -X GET "172.18.54.20:9200/_cluster/health?level=indices"

    查看指定索引库的健康状态
    curl -u elastic:{password} -X GET "172.18.54.20:9200/_cluster/health/{indexName}?pretty"

  • 相关阅读:
    Linux安装phpMywind
    CentOS7安装virtualbox
    MySQL3534
    DIV盒子介绍
    HTML选择器
    人脸检测
    openblas下载安装编译
    DeepLearning网络设计总结
    Linux命令替换字符串
    Y7000联想拯救者gtx1050Ti安装cuda9.0
  • 原文地址:https://www.cnblogs.com/101key/p/11245319.html
Copyright © 2011-2022 走看看