ELK

31.Elasticsearch集群故障排查及修复-2

2022-05-18  本文已影响0人  大勇任卷舒

31.1 定位红色或黄色的索引

GET /_cluster/allocation/explain
{
  "index": "my_index_003",
  "shard": 0,
  "primary": false
}

31.2 解决问题

PUT my_index_003/_settings
{
  "index": {
    "number_of_replicas": 0
  }
}
POST /_cluster/reroute
{
  "commands": [
      {
        "move": {
          "index": "test", "shard": 0,
          "from_node": "node1", "to_node": "node2"
        }
      },
      {
        "allocate_replica": {
          "index": "test", "shard": 1,
          "node": "node3"
       }
     }
   ]
}

大数据视频推荐:
腾讯课堂
CSDN
ELK入门精讲
AIOps智能运维实战
ELK7 stack开发运维
大数据语音推荐:
ELK7 stack开发运维
企业级大数据技术应用
大数据机器学习案例之推荐系统
自然语言处理
大数据基础
人工智能:深度学习入门到精通

上一篇下一篇

猜你喜欢

热点阅读