-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit adds five built-in ILM policies ranging from 7 days to 365 days of retention. These are intending to be starting points for a user to use until they switch to using a custom built ILM policy.
- Loading branch information
Showing
8 changed files
with
231 additions
and
5 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
x-pack/plugin/core/src/main/resources/180-days-default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"phases": { | ||
"hot": { | ||
"actions": { | ||
"rollover": { | ||
"max_primary_shard_size": "50gb", | ||
"max_age": "30d" | ||
} | ||
} | ||
}, | ||
"warm": { | ||
"min_age": "2d", | ||
"actions": { | ||
"shrink": { | ||
"number_of_shards": 1 | ||
}, | ||
"forcemerge": { | ||
"max_num_segments": 1 | ||
} | ||
} | ||
}, | ||
"cold": { | ||
"min_age": "30d", | ||
"actions": {} | ||
}, | ||
"delete": { | ||
"min_age": "180d", | ||
"actions":{ | ||
"delete": {} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "built-in ILM policy using the hot, warm, and cold phases with a retention of 180 days", | ||
"managed": true | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
x-pack/plugin/core/src/main/resources/30-days-default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"phases": { | ||
"hot": { | ||
"actions": { | ||
"rollover": { | ||
"max_primary_shard_size": "50gb", | ||
"max_age": "30d" | ||
} | ||
} | ||
}, | ||
"warm": { | ||
"min_age": "2d", | ||
"actions": { | ||
"shrink": { | ||
"number_of_shards": 1 | ||
}, | ||
"forcemerge": { | ||
"max_num_segments": 1 | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"min_age": "30d", | ||
"actions":{ | ||
"delete": {} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "built-in ILM policy using the hot and warm phases with a retention of 30 days", | ||
"managed": true | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
x-pack/plugin/core/src/main/resources/365-days-default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"phases": { | ||
"hot": { | ||
"actions": { | ||
"rollover": { | ||
"max_primary_shard_size": "50gb", | ||
"max_age": "30d" | ||
} | ||
} | ||
}, | ||
"warm": { | ||
"min_age": "2d", | ||
"actions": { | ||
"shrink": { | ||
"number_of_shards": 1 | ||
}, | ||
"forcemerge": { | ||
"max_num_segments": 1 | ||
} | ||
} | ||
}, | ||
"cold": { | ||
"min_age": "30d", | ||
"actions": {} | ||
}, | ||
"delete": { | ||
"min_age": "365d", | ||
"actions":{ | ||
"delete": {} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "built-in ILM policy using the hot, warm, and cold phases with a retention of 365 days", | ||
"managed": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"phases": { | ||
"hot": { | ||
"actions": { | ||
"rollover": { | ||
"max_primary_shard_size": "50gb", | ||
"max_age": "7d" | ||
} | ||
} | ||
}, | ||
"warm": { | ||
"min_age": "2d", | ||
"actions": { | ||
"shrink": { | ||
"number_of_shards": 1 | ||
}, | ||
"forcemerge": { | ||
"max_num_segments": 1 | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"min_age": "7d", | ||
"actions":{ | ||
"delete": {} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "built-in ILM policy using the hot and warm phases with a retention of 7 days", | ||
"managed": true | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
x-pack/plugin/core/src/main/resources/90-days-default.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"phases": { | ||
"hot": { | ||
"actions": { | ||
"rollover": { | ||
"max_primary_shard_size": "50gb", | ||
"max_age": "30d" | ||
} | ||
} | ||
}, | ||
"warm": { | ||
"min_age": "2d", | ||
"actions": { | ||
"shrink": { | ||
"number_of_shards": 1 | ||
}, | ||
"forcemerge": { | ||
"max_num_segments": 1 | ||
} | ||
} | ||
}, | ||
"cold": { | ||
"min_age": "30d", | ||
"actions": {} | ||
}, | ||
"delete": { | ||
"min_age": "90d", | ||
"actions":{ | ||
"delete": {} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "built-in ILM policy using the hot, warm, and cold phases with a retention of 90 days", | ||
"managed": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters