Master
1
2
3
4
5
6
7
    cluster.name: ysnows
    node.name: master
    node.master: true
    node.data: false
    
    network.host: 0.0.0.0
    discovery.zen.ping.unicast.hosts: ["192.168.1.1","192.168.1.2"]
Slave
1
2
3
4
5
6
7
8
9
    cluster.name: ysnows
    node.name: slave1
    node.master: false
    node.data: true
    
    network.host: 0.0.0.0
    http.port: 9200
    
    discovery.zen.ping.unicast.hosts: ["192.168.1.1","192.168.1.2"] # 配置自动发现