Elasti c search - атрибуты узла не настроены вasticsearch.yml. Вы не можете контролировать распределение сегментов без атрибутов узла - PullRequest
0 голосов
/ 04 февраля 2020

При настройке индекса холодной / теплой фазы в Кибане появляется эта ошибка:

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

Я добавил конфигурацию выделения сегмента (подробно описано в приведенной выше ссылке) вasticsearch.yml на всех 3 узлах, но все равно получаю ту же ошибку. Чего мне не хватает?

#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

1 Ответ

0 голосов
/ 04 февраля 2020

Чтобы определить атрибут узла, вы должны добавить параметр, например:

node.attr.[some attribute]: value

подобно

node.attr.box_type: hot

, и позже вы можете изменить настройку индекса и сделать так, чтобы он был на такой холодный горячий узел:

PUT /logs_2016-12-26
{
  "settings": {
    "index.routing.allocation.require.box_type": "hot"
  }
}

box_type является произвольным атрибутом здесь.

Для более подробной информации вы можете проверить здесь и здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...