gpt4 book ai didi

elasticsearch - 属性:[机架]上的节点上的碎片太多,每个属性:[1]所需,节点数:[2],剩余的:[0]

转载 作者:行者123 更新时间:2023-12-03 01:44:57 27 4
gpt4 key购买 nike

当我尝试将未分配的辅助分片分配给节点时出现错误。

{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[10.0.2.17][10.0.2.17:9300][cluster:admin/reroute]"
}
],
"type": "illegal_argument_exception",
"reason": "[allocate] allocation of [vts_companydirectory_20170625_2040][1] on node {10.0.2.34}{atDVd6lEQTiuBitCsqYqBA}{10.0.2.34}{10.0.2.34:9300}{max_local_storage_nodes=1, rack=rack.10-0-2, master=true} is not allowed, reason: [YES(shard is not allocated to same node or host)][YES(node passes include/exclude/require filters)][YES(target node version [2.3.3] is same or newer than source node version [2.3.3])][YES(primary is already active)][YES(enough disk for shard on node, free: [1.3tb])][YES(allocation disabling is ignored)][NO(too many shards on node for attribute: [rack], required per attribute: [1], node count: [2], leftover: [0])][YES(shard count under index limit [10] and node limit [-1] of total shards per node)][YES(below shard recovery limit of [10])][YES(allocation disabling is ignored)][YES(shard not primary or relocation disabled)]"
},
"status": 400
}

最佳答案

您已启用分片分配意识。
参见here

Elasticsearch尝试不为特定属性(在您的情况下为“rack”)在具有相同值的节点上分配主分片和副本分片。

您正在收到此错误,因为Elasticsearch的分片分配意识阻止了该索引的副本分片在您指定为其他节点的节点上分配,该节点具有“rack”属性(“rack” =“rack.10-0-2” )当前已为其分配了主(或其他)副本分片

尝试将此分片分配给另一个节点,该节点的“rack”属性值与您尝试分配给该节点的值不同。

关于elasticsearch - 属性:[机架]上的节点上的碎片太多,每个属性:[1]所需,节点数:[2],剩余的:[0],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44799045/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com