Skip to content

Instantly share code, notes, and snippets.

@Nurlan199206
Last active July 1, 2026 15:17
Show Gist options
  • Select an option

  • Save Nurlan199206/3a7ade61d570231ee7ccd96432234dd5 to your computer and use it in GitHub Desktop.

Select an option

Save Nurlan199206/3a7ade61d570231ee7ccd96432234dd5 to your computer and use it in GitHub Desktop.
ILM policy
GET /kubernetes-prod-esb-2026.06.2*/_ilm/explain?filter_path=indices.*.phase,indices.*.step,indices.*.step_info
PUT esb-test-*/_settings
{
"index.routing.allocation.require.data": "cold",
"index.routing.allocation.require.data_tier": "cold"
}
GET kubernetes-prod-esb-*/_ilm/explain?filter_path=indices.*.index,indices.*.phase
PUT logstash-*,nginx-*,esb-*,bpm-*,blockchain-*/_settings
{
"index.lifecycle.name": "clear"
}
POST _cluster/reroute?retry_failed=true
GET _cat/shards?v&h=index,shard,prirep,state,node&s=node:desc и искать по ключевому слову RELOCATING
GET _cluster/allocation/explain
{
"index": "bpm-prod-ala123140-2026.06.20",
"shard": 0,
"primary": false
}
PUT /_ilm/policy/clear
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 100
}
}
},
"warm": {
"min_age": "5d",
"actions": {
"allocate": {
"number_of_replicas": 0,
"require": {
"warm": "true"
}
},
"forcemerge": {
"max_num_segments": 1
},
"set_priority": {
"priority": 50
}
}
},
"cold": {
"min_age": "8d",
"actions": {
"allocate": {
"number_of_replicas": 0,
"require": {
"data": "cold"
}
},
"set_priority": {
"priority": 30
}
}
},
"delete": {
"min_age": "180d",
"actions": {
"delete": {}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment