leonheart 发表于 2019-1-29 08:57:10

处理Elasticsearch集群yellow和red状态

curl -XPOST '{ESIP}:9200/_cluster/reroute' -d '{  
    "commands" : [ {
  
          "allocate" : {
  
            "index" : "eslog1",
  
            "shard" : 4,
  
            "node" : "es1",
  
            "allow_primary" : true
  
          }
  
      }
  
    ]
  
}'


页: [1]
查看完整版本: 处理Elasticsearch集群yellow和red状态