DBAtlas · 数据库运维图谱

通过别名进行 rollover

Elasticsearch索引生命周期

命令

POST /customer-alias/_rollover
{
  "conditions": {
    "max_age": "7d",
    "max_docs": 100000000,
    "max_primary_shard_size": "50gb"
  }
}

作用

当别名指向的写入索引满足条件时,创建新索引并将别名指向它。

适用场景

用于管理时序数据的索引大小(ILM 的替代或补充)。

注意

别名必须通过 is_write_index 拥有唯一的写入索引;配置错误会阻止 rollover。

在 DBAtlas 中打开 →

相关内容