Skip to content
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

Merged

Conversation

sarthakaggarwal97
Copy link
Contributor

@sarthakaggarwal97 sarthakaggarwal97 commented Jun 29, 2023

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

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@sarthakaggarwal97 sarthakaggarwal97 changed the title documentation for zstd and zstd out of sandbox Documentation for zstd and zstd out of sandbox Jun 29, 2023
@hdhalter
Copy link
Contributor

@Naarcha-AWS - since this issue is assigned to you, can you please review the PR? Thanks!

@Naarcha-AWS Naarcha-AWS self-assigned this Jul 3, 2023
@hdhalter hdhalter added the release-notes PR: Include this PR in the automated release notes label Jul 7, 2023
@hdhalter hdhalter changed the title Documentation for zstd and zstd out of sandbox Adds ZSTD and ZSTD_NO_DICT codecs out of sandbox to core Jul 11, 2023
@hdhalter hdhalter changed the title Adds ZSTD and ZSTD_NO_DICT codecs out of sandbox to core Adds ZSTD and ZSTD_NO_DICT codecs to core (out of standbox) Jul 11, 2023
Co-authored-by: Naarcha-AWS <[email protected]>
Signed-off-by: Heather Halter <[email protected]>
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
@hdhalter hdhalter changed the title Adds ZSTD and ZSTD_NO_DICT codecs to core (out of standbox) Adds ZSTD and ZSTD_NO_DICT codecs to core (out of sandbox) Jul 11, 2023
@hdhalter
Copy link
Contributor

@sarthakaggarwal97 - can you please review? Is there anything else I can add to differentiate the options? Thanks.

@hdhalter hdhalter added the 3 - Tech review PR: Tech review in progress label Jul 12, 2023
@sarthakaggarwal97
Copy link
Contributor Author

sarthakaggarwal97 commented Jul 12, 2023

@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. default -> lz4 algorithm, best_compression -> uses zlib algorithm, and zstd/zstd_no_dict uses Zstandard algorithm.

Also, there is a separate documentation is being prepared to help users understand more about index.codec setting, which includes that zstd_no_dict provides the best performance with indexing operations.

Copy link
Contributor

@hdhalter hdhalter left a 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?

_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
Copy link
Contributor

@hdhalter hdhalter left a 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

_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
hdhalter added 2 commits July 13, 2023 16:28
Fixed the code samples

Signed-off-by: Heather Halter <[email protected]>
Copy link
Contributor

@hdhalter hdhalter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed broken link

_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
hdhalter added 2 commits July 13, 2023 16:44
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).
Copy link
Contributor Author

@sarthakaggarwal97 sarthakaggarwal97 Jul 14, 2023

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
Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

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!

Copy link
Contributor

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.

Copy link
Contributor Author

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?

hdhalter added 2 commits July 14, 2023 09:45
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]>
@hdhalter hdhalter added 5 - Editorial review PR: Editorial review in progress and removed 3 - Tech review PR: Tech review in progress labels Jul 14, 2023
Copy link
Collaborator

@natebower natebower left a 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!

_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
_api-reference/index-apis/create-index.md Outdated Show resolved Hide resolved
hdhalter and others added 8 commits July 14, 2023 13:32
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]>
@hdhalter hdhalter self-assigned this Jul 17, 2023
@hdhalter hdhalter added 6 - Done but waiting to merge PR: The work is done and ready to merge and removed 5 - Editorial review PR: Editorial review in progress labels Jul 17, 2023
@sarthakaggarwal97
Copy link
Contributor Author

LGTM!

@hdhalter
Copy link
Contributor

Confirmed with @sarthakaggarwal97 this is good to go. @kolchfa-aws will take over the updates post-2.9.

@hdhalter hdhalter merged commit de4276a into opensearch-project:main Jul 19, 2023
harshavamsi pushed a commit to harshavamsi/documentation-website that referenced this pull request Oct 31, 2023
…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]>
vagimeli pushed a commit that referenced this pull request Dec 21, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6 - Done but waiting to merge PR: The work is done and ready to merge release-notes PR: Include this PR in the automated release notes v2.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants