-
Couldn't load subscription status.
- Fork 25.6k
Rollover add max_primary_shard_docs condition #80981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
d1c4ed7
3cea0d7
ed8fc6e
e8ad38f
7e7b33b
2939d24
4d6f241
24cc5cd
d86f1f8
aca6b68
e60b76e
d77fd75
e9282d0
a529b47
67c358e
9baff6c
36ff8b3
936f557
0b374d5
e849807
f3de95a
af982a3
037621a
8396f2b
69ee711
ae9786a
764ce75
7facb5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,14 @@ replicas are ignored. | |
| TIP: To see the current shard size, use the <<cat-shards, _cat shards>> API. | ||
| The `store` value shows the size each shard, and `prirep` indicates whether a | ||
| shard is a primary (`p`) or a replica (`r`). | ||
|
|
||
| `max_shard_docs`:: | ||
|
||
| (Optional, integer) | ||
| Triggers rollover when the largest shard in the index reaches a certain number of documents. | ||
| This is the maximum docs of the shards in the index. As with `max_docs` | ||
| + | ||
| TIP: To see the current shard docs, use the <<cat-shards, _cat shards>> API. | ||
| The `docs` value shows the number of documents each shard. | ||
| // end::rollover-conditions[] | ||
|
|
||
| [[ilm-rollover-ex]] | ||
|
|
@@ -155,6 +163,29 @@ PUT _ilm/policy/my_policy | |
| } | ||
| -------------------------------------------------- | ||
|
|
||
| [ilm-rollover-documents-ex]] | ||
| ===== Roll over based on document count of the largest shard | ||
|
|
||
| This example rolls the index over when it contains at least ten million documents of the largest shard. | ||
|
|
||
| [source,console] | ||
| -------------------------------------------------- | ||
| PUT _ilm/policy/my_policy | ||
| { | ||
| "policy": { | ||
| "phases": { | ||
| "hot": { | ||
| "actions": { | ||
| "rollover" : { | ||
| "max_shard_docs": 10000000 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| -------------------------------------------------- | ||
|
|
||
| [ilm-rollover-age-ex]] | ||
| ===== Roll over based on index age | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is needed to add this new limit to the HLRC code base.
This HLRC is no longer developed in favour for the new java client.
This just exists in master/8.0 for tests that still rely on hlrc,
but there should be no need to add new things to the HLRC.
The HLRC is no longer released / published and will be removed in the near future.
So I think we can undo all changes in the client directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, I will revert them.