# 集群名称 cluster.name: elasticsearch-cluster-demo # # 节点信息 node.name: node-master-one node.master: true node.data: false # # Path to directory where to store the data (separate multiple locations by comma): # es data 存储路径 path.data: /home/environment/elasticsearch-cluster/elasticsearch-master-one/data # # Path to log files: # log存储路径 path.logs: /home/environment/elasticsearch-cluster/elasticsearch-master-one/logs # # Set the bind address to a specific IP (IPv4 or IPv6): # 网路监听 network.host: 0.0.0.0 http.port: 9200 transport.tcp.port: 9300 # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # 可以发现当前节点的主节点ip:port discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"] # # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): # 集群最小主节点个数 #discovery.zen.minimum_master_nodes: 2 # # 设置跨域问题,方便使用elasticsearch-head来检测集群状态 http.cors.enabled: true http.cors.allow-origin: /.*/
# 集群名称 cluster.name: elasticsearch-cluster-demo # # 节点信息 node.name: node-data-one node.master: false node.data: true # # Path to directory where to store the data (separate multiple locations by comma): # es data 存储路径 path.data: /home/environment/elasticsearch-cluster/elasticsearch-data-one/data # # Path to log files: # log存储路径 path.logs: /home/environment/elasticsearch-cluster/elasticsearch-data-one/logs # # Set the bind address to a specific IP (IPv4 or IPv6): # 网路监听 network.host: 0.0.0.0 http.port: 9210 transport.tcp.port: 9310 # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # 可以发现当前节点的主节点ip:port discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"] # # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): # 集群最小主节点个数 #discovery.zen.minimum_master_nodes: 2 # # 设置跨域问题,方便使用elasticsearch-head来检测集群状态 http.cors.enabled: true http.cors.allow-origin: /.*/
# 集群名称 cluster.name: elasticsearch-cluster-demo # # 节点信息 node.name: node-data-two node.master: false node.data: true # # Path to directory where to store the data (separate multiple locations by comma): # es data 存储路径 path.data: /home/environment/elasticsearch-cluster/elasticsearch-data/two/data # # Path to log files: # log存储路径 path.logs: /home/environment/elasticsearch-cluster/elasticsearch-data-two/logs # # Set the bind address to a specific IP (IPv4 or IPv6): # 网路监听 network.host: 0.0.0.0 http.port: 9211 transport.tcp.port: 9311 # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # 可以发现当前节点的主节点ip:port discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"] # # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): # 集群最小主节点个数 #discovery.zen.minimum_master_nodes: 2 # # 设置跨域问题,方便使用elasticsearch-head来检测集群状态 http.cors.enabled: true http.cors.allow-origin: /.*/
# 集群名称 cluster.name: elasticsearch-cluster-demo # # 节点信息 node.name: node-client-one node.master: false node.data: false # # Path to directory where to store the data (separate multiple locations by comma): # es data 存储路径 path.data: /home/environment/elasticsearch-cluster/elasticsearch-client-one/data # # Path to log files: # log存储路径 path.logs: /home/environment/elasticsearch-cluster/elasticsearch-client-one/logs # # Set the bind address to a specific IP (IPv4 or IPv6): # 网路监听 network.host: 0.0.0.0 http.port: 9220 transport.tcp.port: 9320 # # Pass an initial list of hosts to perform discovery when new node is started: # The default list of hosts is ["127.0.0.1", "[::1]"] # 可以发现当前节点的主节点ip:port discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"] # # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1): # 集群最小主节点个数 #discovery.zen.minimum_master_nodes: 2 # # 设置跨域问题,方便使用elasticsearch-head来检测集群状态 http.cors.enabled: true http.cors.allow-origin: /.*/