相关疑难解决方法(0)

elasticsearch - 如何处理未分配的分片

我的群集处于黄色状态,因为某些分片未分配.该怎么办?

我尝试设置cluster.routing.allocation.disable_allocation = false所有索引,但我认为这不起作用,因为我使用的是1.1.1版本.

我也尝试重新启动所有机器,但同样的情况发生了.

任何的想法?

编辑:

  • 群集统计:

    { 
      cluster_name: "elasticsearch",
      status: "red",
      timed_out: false,
      number_of_nodes: 5,
      number_of_data_nodes: 4,
      active_primary_shards: 4689,
      active_shards: 4689,
      relocating_shards: 0,
      initializing_shards: 10,
      unassigned_shards: 758
    }
    
    Run Code Online (Sandbox Code Playgroud)

elasticsearch

50
推荐指数
4
解决办法
8万
查看次数

标签 统计

elasticsearch ×1