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 (#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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
### Changes
4
4
5
+
- Add `max_primary_shard_docs` condition to ILM rollover ([#845](https://github.com/elastic/terraform-provider-elasticstack/pull/845))
5
6
- Fix boolean setting parsing for `elasticstack_elasticsearch_indices` data source. ([#842](https://github.com/elastic/terraform-provider-elasticstack/pull/842))
Copy file name to clipboardExpand all lines: docs/resources/elasticsearch_index_lifecycle.md
+1Lines changed: 1 addition & 0 deletions
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.4**
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
+15-9Lines changed: 15 additions & 9 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