You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add max_primary_shard_docs condition to ILM rollover (elastic#845)
* Add `max_primary_shard_docs` condition to ILM rollover (elastic#845)
* Add `max_primary_shard_docs` condition to rollover
* Update test for rollover `max_primary_shard_docs` condition
* Specify min version in the description
* Update CHANGELOG.md
* Add explicit case for max_primary_shard_docs
* Fix acctests
---------
Co-authored-by: Toby Brain <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
## [Unreleased]
2
2
3
+
- Add `max_primary_shard_docs` condition to ILM rollover ([#845](https://github.com/elastic/terraform-provider-elasticstack/pull/845))
4
+
3
5
## [0.11.13] - 2025-01-09
4
6
5
7
- Support 8.15.5 in acc tests ([#963](https://github.com/elastic/terraform-provider-elasticstack/pull/963)).
@@ -11,7 +13,7 @@
11
13
12
14
### Breaking changes
13
15
14
-
- Support multiple group by fields in SLOs ([#870](https://github.com/elastic/terraform-provider-elasticstack/pull/878)). This changes to type of the `group_by` attribute of the `elasticstack_kibana_slo` resource from a String to a list of Strings. Any existing SLO defintions will need to update `group_by = "field"` to `group_by = ["field"]`.
16
+
- Support multiple group by fields in SLOs ([#870](https://github.com/elastic/terraform-provider-elasticstack/pull/878)). This changes to type of the `group_by` attribute of the `elasticstack_kibana_slo` resource from a String to a list of Strings. Any existing SLO defintions will need to update `group_by = "field"` to `group_by = ["field"]`.
15
17
16
18
### Changes
17
19
- Handle NPE in integration policy secrets ([#946](https://github.com/elastic/terraform-provider-elasticstack/pull/946))
Copy file name to clipboardExpand all lines: docs/resources/elasticsearch_index_lifecycle.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,7 @@ Optional:
288
288
289
289
-`max_age` (String) Triggers rollover after the maximum elapsed time from index creation is reached.
290
290
-`max_docs` (Number) Triggers rollover after the specified maximum number of documents is reached.
291
+
-`max_primary_shard_docs` (Number) Triggers rollover when the largest primary shard in the index reaches a certain number of documents. Supported from Elasticsearch version **8.2**
291
292
-`max_primary_shard_size` (String) Triggers rollover when the largest primary shard in the index reaches a certain size.
292
293
-`max_size` (String) Triggers rollover when the index reaches a certain size.
293
294
-`min_age` (String) Prevents rollover until after the minimum elapsed time from index creation is reached. Supported from Elasticsearch version **8.4**
Copy file name to clipboardExpand all lines: internal/elasticsearch/index/ilm.go
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,11 @@ var supportedActions = map[string]*schema.Schema{
268
268
Type: schema.TypeString,
269
269
Optional: true,
270
270
},
271
+
"max_primary_shard_docs": {
272
+
Description: "Triggers rollover when the largest primary shard in the index reaches a certain number of documents. Supported from Elasticsearch version **8.2**",
273
+
Type: schema.TypeInt,
274
+
Optional: true,
275
+
},
271
276
"max_primary_shard_size": {
272
277
Description: "Triggers rollover when the largest primary shard in the index reaches a certain size.",
273
278
Type: schema.TypeString,
@@ -288,16 +293,16 @@ var supportedActions = map[string]*schema.Schema{
288
293
Type: schema.TypeString,
289
294
Optional: true,
290
295
},
291
-
"min_primary_shard_size": {
292
-
Description: "Prevents rollover until the largest primary shard in the index reaches a certain size. Supported from Elasticsearch version **8.4**",
293
-
Type: schema.TypeString,
294
-
Optional: true,
295
-
},
296
296
"min_primary_shard_docs": {
297
297
Description: "Prevents rollover until the largest primary shard in the index reaches a certain number of documents. Supported from Elasticsearch version **8.4**",
298
298
Type: schema.TypeInt,
299
299
Optional: true,
300
300
},
301
+
"min_primary_shard_size": {
302
+
Description: "Prevents rollover until the largest primary shard in the index reaches a certain size. Supported from Elasticsearch version **8.4**",
0 commit comments