通过手动迁移shard临时解决热点数据分布不均匀问题
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "none"
}
}
POST /_cluster/reroute
{
"commands" : [
{
"move" : {
"index" : "api-shuidi-log-2022.04.25",
"shard" : 0,
"from_node" : "10.8.6.107",
"to_node" : "10.8.6.112"
}
}
]
}
GET _cat/shards?v
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}
···