集群内的原理

集群内的原理

# 集群健康
# status包含green(主副分片正常)、yellow(副分片异常)、red(主分片异常)

GET _clusterhealth

# 创建索引

PUT blogs
{
  settings {
    number_of_shards 3,
    number_of_replicas 1
  }
}

# 主分片在索引创建后,无法更改
# 副本分片可以动态伸缩

PUT blogs_settings
{
    number_of_replicas 1
}

猜你喜欢

转载自blog.csdn.net/qq_39074984/article/details/113698360
今日推荐