index 恢复优先级

未分配的碎片优先恢复,尽可能。索引按如下顺序排序

  • the optional index.priority setting (higher before lower)
  • the index creation date (higher before lower)
  • the index name (higher before lower)

For instance:

PUT index_1
PUT index_2
PUT index_3
{
  "settings": {
    "index.priority": 10
  }
}
PUT index_4
{
  "settings": {
    "index.priority": 5
  }
}
  • index_3 will be recovered first because it has the highest index.priority.
  • index_4 will be recovered next because it has the next highest priority.
  • index_2 will be recovered next because it was created more recently.
  • index_1 will be recovered last.

这个设置接受一个整数,可以在一个活索引上进行更新。 with the update index settings API:

PUT index_4/_settings
{
  "index.priority": 1
}

每个节点的总碎片数

results matching ""

    No results matching ""