您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
elasticSearch集群健康状态变黄yellow及Unassigned问题排查
发布时间:2021-09-06 19:03:48编辑:雪饮阅读()
如题,在elasticSearch中配置集群后有可能会出现集群健康状态变成yellow状态
同时有出现unassigned也就是未分配状态,这里个人理解应该是没有给数据分配副本(副本节点)
那么具体原因可以通过如下api来分析
请求体:none
响应体:
{
"index": "schools",
"shard": 0,
"primary": false,
"current_state": "unassigned",
"unassigned_info": {
"reason": "INDEX_CREATED",
"at": "2021-09-06T10:43:37.786Z",
"last_allocation_status": "no_attempt"
},
"can_allocate": "no",
"allocate_explanation": "cannot allocate because allocation is not permitted to any of the nodes",
"node_allocation_decisions": [
{
"node_id": "U5DcuznrSSSIc9JqmWJJPA",
"node_name": "node-win7",
"transport_address": "192.168.43.76:9300",
"node_attributes": {
"ml.machine_memory": "3757498368",
"ml.max_open_jobs": "512",
"xpack.installed": "true",
"ml.max_jvm_size": "1073741824",
"transform.node": "true"
},
"node_decision": "no",
"weight_ranking": 1,
"deciders": [
{
"decider": "same_shard",
"decision": "NO",
"explanation": "a copy of this shard is already allocated to this node [[schools][0], node[U5DcuznrSSSIc9JqmWJJPA], [P], s[STARTED], a[id=PSjvOdO0Sva7OuJJfeSAtQ]]"
}
]
}
]
}
可以看到这里就出现了一个比较显眼的错误:
cannot allocate because allocation is not permitted to any of the nodes
直译意思是:无法分配,因为不允许分配给任何节点
关键字词:elasticSearch,集群健康状态,变黄,yellow,Unassigned
相关文章
- elasticSearch查询DSL-匹配所有查询
- elasticSearch节点hot_threads
- elasticSearch集群api-节点统计
- elasticSearch群集更新设置api参数flat_settings的使
- elasticSearch群集更新设置(transient)
- elasticSearch集群获取设置api与群集更新设置(persist
- elasticSearch分片(主分片、副本分片)与节点的关系
- elasticSearch集群配置-cluster.initial_master_nodes
- elasticSearch配置集群、配置主从(master与data分离)集
- elasticSearch配置集群名称