elasticsearch

配置集群

  1.master节点

    

cluster.name: es5
node.name: node-1
node.master: true
node.data: true
http.port: 9200
network.host: 192.168.1.188
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.zen.ping.unicast.hosts: ["192.168.1.188","192.168.1.191"]

  

  2.data节点

cluster.name: es5
node.name: node-2
node.master: false
node.data: true
http.port: 9200
network.host: 192.168.1.191
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.unicast.hosts: ["192.168.1.188","192.168.1.191"]

  

posted @ 2018-03-12 10:27  立于群  阅读(121)  评论(0编辑  收藏  举报