add ilm forecast data collection, generalized parallel api calls

This commit is contained in:
2026-06-25 11:54:06 +02:00
parent 825b3ce5d1
commit 5f60696b01
7 changed files with 585 additions and 152 deletions

View File

@@ -37,6 +37,7 @@ func Ilm(conf *cfg.Config) *cli.Command {
IlmList(conf),
IlmShow(conf),
IlmCreate(conf),
IlmForecast(conf),
},
}
}
@@ -99,66 +100,6 @@ func IlmShow(conf *cfg.Config) *cli.Command {
}
}
/*
*
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_primary_shard_size": "50gb",
"max_age": "1d",
"max_docs": 100000000
},
"set_priority": {
"priority": 100
}
}
},
"warm": {
"min_age": "7d",
"actions": {
"migrate": {},
"shrink": {
"number_of_shards": 1
},
"forcemerge": {
"max_num_segments": 1
},
"set_priority": {
"priority": 50
}
}
},
"cold": {
"min_age": "30d",
"actions": {
"migrate": {},
"searchable_snapshot": {
"snapshot_repository": "s3-logs-archive",
"force_merge_index": true
},
"set_priority": {
"priority": 0
}
}
},
"delete": {
"min_age": "90d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
*/
func IlmCreate(conf *cfg.Config) *cli.Command {
return &cli.Command{
Name: "create",