-
Notifications
You must be signed in to change notification settings - Fork 503
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
Adds ZSTD and ZSTD_NO_DICT codecs to core (out of sandbox) #4421
Adds ZSTD and ZSTD_NO_DICT codecs to core (out of sandbox) #4421
Conversation
Signed-off-by: Sarthak Aggarwal <[email protected]>
@Naarcha-AWS - since this issue is assigned to you, can you please review the PR? Thanks! |
Co-authored-by: Naarcha-AWS <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Signed-off-by: Heather Halter <[email protected]>
@sarthakaggarwal97 - can you please review? Is there anything else I can add to differentiate the options? Thanks. |
@hdhalter @Naarcha-AWS we can add the information related regarding the different codecs using different algorithms. Also, there is a separate documentation is being prepared to help users understand more about |
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.
@sarthakaggarwal97 - please review the proposed changes. Should I also move that section down to the dynamic table?
Signed-off-by: Heather Halter <[email protected]>
Signed-off-by: Heather Halter <[email protected]>
Signed-off-by: Heather Halter <[email protected]>
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.
Fixed a tick mark
Signed-off-by: Heather Halter <[email protected]>
Fixed the code samples Signed-off-by: Heather Halter <[email protected]>
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.
Fixed broken link
Signed-off-by: Heather Halter <[email protected]>
Added back a heading 'Index Settings' since it caused broken links in other topics. Signed-off-by: Heather Halter <[email protected]>
@@ -94,6 +91,7 @@ Setting | Description | |||
:--- | :--- | |||
index.number_of_replicas | The number of replica shards each primary shard should have. For example, if you have 4 primary shards and set `index.number_of_replicas` to 3, the index has 12 replica shards. Default is 1. | |||
index.auto_expand_replicas | Whether the cluster should automatically add replica shards based on the number of data nodes. Specify a lower bound and upper limit (for example, 0-9), or `all` for the upper limit. For example, if you have 5 data nodes and set `index.auto_expand_replicas` to 0-3, then the cluster does not automatically add another replica shard. However, if you set this value to `0-all` and add 2 more nodes for a total of 7, the cluster will expand to now have 6 replica shards. Default is disabled. | |||
index.codec | Determines how the index’s stored fields are compressed and stored on the disk. This setting impacts the size of the index shards and the performance of the operations on the index. Available values are: `default', 'best_compression`, `zstd` and `zstd_no_dict`. Two new codecs are introduced in OpenSearch 2.9: `zstd` and `zstd_no_dict`. They provide an option to configure the compression level as an index setting `index.codec.compression_level` which is not available for other codecs. For information about each setting, see [Index codec settings](#Index-codec-settings). |
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.
Can we add a line over here that index.codec
settings cannot be updated in real-time.
Similarly, index.codec.compression_level
can also not be updated at real time.
index.final_pipeline | The final ingest node pipeline for the index. If the final pipeline is set and the pipeline does not exist, then index requests fail. The pipeline name `_none` specifies that the index does not have an ingest pipeline. | ||
|
||
#### Index codec settings |
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.
As discussed offline, we will add an additional page to explain the index.codec settings around the time of release.
This information might be redundant post the addition of that page, how do you suggest we should proceed @hdhalter
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.
Calling it out here: We might need to update the documentation related to snapshot, and we can check if we can add something over here at best practices for performance
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.
We need to add more information about indexing, in general, and will add more information to support these options after the release.
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.
Can you please provide me an endpoint so I can test the code samples on Monday? Thanks!
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.
@sarthakaggarwal97 - The documentation related to snapshots has been updated. The link above to 'best practices' is part of the Service documentation and needs to be handled by @chatnish.
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.
Can you please provide me an endpoint so I can test the code samples on Monday? Thanks!
Do you want a domain where you can test these code samples?
Added the compression_level setting to the dynamic table. Signed-off-by: Heather Halter <[email protected]>
Added sentences about not being able to be updated dynamically. Signed-off-by: Heather Halter <[email protected]>
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.
@hdhalter Please see my changes and let me know if you have any questions. Thanks!
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]>
LGTM! |
Confirmed with @sarthakaggarwal97 this is good to go. @kolchfa-aws will take over the updates post-2.9. |
…h-project#4421) * documentation for zstd and zstd out of sandbox Signed-off-by: Sarthak Aggarwal <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Naarcha-AWS <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added a new section with codec information Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Fixed the code samples Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added back a heading 'Index Settings' since it caused broken links in other topics. Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added the compression_level setting to the dynamic table. Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added sentences about not being able to be updated dynamically. Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Heather Halter <[email protected]> Co-authored-by: Heather Halter <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
* documentation for zstd and zstd out of sandbox Signed-off-by: Sarthak Aggarwal <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Naarcha-AWS <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added a new section with codec information Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Fixed the code samples Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added back a heading 'Index Settings' since it caused broken links in other topics. Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added the compression_level setting to the dynamic table. Signed-off-by: Heather Halter <[email protected]> * Update create-index.md Added sentences about not being able to be updated dynamically. Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> * Update _api-reference/index-apis/create-index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: Heather Halter <[email protected]> --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Heather Halter <[email protected]> Co-authored-by: Heather Halter <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
Description
ZSTD and ZSTD_NO_DICT codecs were added to core and out of the sandbox as a part of this pull request
We would need to change the documentation once this is closed.
The codecs will be available without the sandbox plugin as a part of OS 2.9 release.
Issues Resolved
#3816 (partly)
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.