Elasticsearch - elasticsearch.yml 中未配置节点属性没有节点属性无法控制分片分配
Elastic search - No node attributes configured in elasticsearch.yml You can't control shard allocation without node attributes
在 Kibana 中设置索引 cold/warm 阶段时,出现此错误:
No node attributes configured in elasticsearch.yml
You can't control shard allocation without node attributes.
Learn about shard allocation. https://www.elastic.co/guide/en/elasticsearch/reference/7.3/shards-allocation.html
我已将分片分配配置(在上面link中有详细说明)添加到所有3个节点上的elasticsearch.yml,但仍然出现相同的错误。我错过了什么?
#SHARD ALLOCATION
cluster.routing.allocation.enable: All
cluster.routing.allocation.node_concurrent_incoming_recoveries: 2
cluster.routing.allocation.node_concurrent_outgoing_recoveries: 2
cluster.routing.allocation.node_concurrent_recoveries: 2
cluster.routing.allocation.node_initial_primaries_recoveries: 4
cluster.routing.allocation.same_shard.host: false
#SHARD BALANCING
cluster.routing.rebalance.enable: all
cluster.routing.allocation.allow_rebalance: indices_all_active
cluster.routing.allocation.cluster_concurrent_rebalance: 2
cluster.routing.allocation.balance.shard: 0.45f
cluster.routing.allocation.balance.index: 0.55f
cluster.routing.allocation.balance.threshold: 1.0f
#DISK SPACE MANAGEMENT
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 85%
cluster.routing.allocation.disk.watermark.high: 90%
cluster.routing.allocation.disk.watermark.flood_stage: 95%
cluster.info.update.interval: 240s
cluster.routing.allocation.disk.include_relocations: true
在 Kibana 中设置索引 cold/warm 阶段时,出现此错误:
No node attributes configured in elasticsearch.yml
You can't control shard allocation without node attributes.
Learn about shard allocation. https://www.elastic.co/guide/en/elasticsearch/reference/7.3/shards-allocation.html
我已将分片分配配置(在上面link中有详细说明)添加到所有3个节点上的elasticsearch.yml,但仍然出现相同的错误。我错过了什么?
#SHARD ALLOCATION
cluster.routing.allocation.enable: All
cluster.routing.allocation.node_concurrent_incoming_recoveries: 2
cluster.routing.allocation.node_concurrent_outgoing_recoveries: 2
cluster.routing.allocation.node_concurrent_recoveries: 2
cluster.routing.allocation.node_initial_primaries_recoveries: 4
cluster.routing.allocation.same_shard.host: false
#SHARD BALANCING
cluster.routing.rebalance.enable: all
cluster.routing.allocation.allow_rebalance: indices_all_active
cluster.routing.allocation.cluster_concurrent_rebalance: 2
cluster.routing.allocation.balance.shard: 0.45f
cluster.routing.allocation.balance.index: 0.55f
cluster.routing.allocation.balance.threshold: 1.0f
#DISK SPACE MANAGEMENT
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 85%
cluster.routing.allocation.disk.watermark.high: 90%
cluster.routing.allocation.disk.watermark.flood_stage: 95%
cluster.info.update.interval: 240s
cluster.routing.allocation.disk.include_relocations: true