我设置了一个包含3个节点的Elasticsearch集群。以下是我在elasticsearch.yml
中更改的值节点地球:
cluster.name: FederationOfPlanets
node.rack: Sol
node.name: Earth
node.master: true
node.data: false
discovery.zen.minimum_master_nodes: 2
index.routing.allocation.disable_allocation: false
节点企业:
cluster.name: FederationOfPlanets
node.rack: Sol
node.name: Enterprise
node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2
index.number_of_shards: 2
index.number_of_replicas: 2
index.routing.allocation.disable_allocation: false
节点违规:
cluster.name: FederationOfPlanets
node.rack: Bajor
node.name: Defiant
node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2
index.number_of_shards: 2
index.number_of_replicas: 2
index.routing.allocation.disable_allocation: false
Enterprise和Defient节点与logstash代理一起运行,以从系统获取日志并将其放入elasticsearch实例中。 Earth正在运行一个logstash Web实例,以在Web界面中显示日志。一切正常,直到我关闭Defiant节点。如果我关闭企业节点,一切都运行良好。
如果一个节点停止工作,我怎样才能避免集群失败?