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

Add indexing and search index settings #667

Merged

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Oct 16, 2023

Description

This PR adds indexing and search settings to index settings. These settings allow configuring of slow logs for indexing and search, as well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly, IndexSettings::blocksRead, etc.

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

This commit adds indexing and search settings to index settings. These
settings allow configuring of slow logs for indexing and search, as
well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already
present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly,
IndexSettings::blocksRead, etc.

Signed-off-by: Russ Cam <russcam@canva.com>
Signed-off-by: Russ Cam <russcam@canva.com>
@russcam russcam force-pushed the russcam-add-slowlog-indexsettings branch from 6726aca to 45d59a6 Compare October 16, 2023 21:25
dblock
dblock previously approved these changes Oct 20, 2023
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

This looks good to me! Do you think you could add some words to the user guide(s) in https://github.com/opensearch-project/opensearch-java/tree/main/guides and maybe a sample to https://github.com/opensearch-project/opensearch-java/tree/main/samples for these features?

Signed-off-by: Russ Cam <russcam@canva.com>
@russcam
Copy link
Contributor Author

russcam commented Oct 24, 2023

@dblock I've added a sample and docs

@russcam russcam requested review from reta and dblock October 24, 2023 01:26
@VachaShah
Copy link
Collaborator

Thank you @russcam! Can you apply ./gradlew :samples:spotlessJavaCheck to fix the build?

Signed-off-by: Russ Cam <russcam@canva.com>
@russcam
Copy link
Contributor Author

russcam commented Oct 25, 2023

@VachaShah done!

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

Thank you @russcam!

@reta reta merged commit 9408cc2 into opensearch-project:main Oct 25, 2023
31 checks passed
@reta reta added the backport 2.x Backport to 2.x branch label Oct 25, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 25, 2023
* Add indexing and search index settings

This commit adds indexing and search settings to index settings. These
settings allow configuring of slow logs for indexing and search, as
well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already
present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly,
IndexSettings::blocksRead, etc.

Signed-off-by: Russ Cam <russcam@canva.com>

* add changelog entry

Signed-off-by: Russ Cam <russcam@canva.com>

* Add documentation and sample

Signed-off-by: Russ Cam <russcam@canva.com>

* Update IndexTemplates

Signed-off-by: Russ Cam <russcam@canva.com>

---------

Signed-off-by: Russ Cam <russcam@canva.com>
(cherry picked from commit 9408cc2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta pushed a commit that referenced this pull request Oct 25, 2023
* Add indexing and search index settings

This commit adds indexing and search settings to index settings. These
settings allow configuring of slow logs for indexing and search, as
well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already
present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly,
IndexSettings::blocksRead, etc.



* add changelog entry



* Add documentation and sample



* Update IndexTemplates



---------


(cherry picked from commit 9408cc2)

Signed-off-by: Russ Cam <russcam@canva.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta pushed a commit to reta/opensearch-java that referenced this pull request Oct 27, 2023
* Add indexing and search index settings

This commit adds indexing and search settings to index settings. These
settings allow configuring of slow logs for indexing and search, as
well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already
present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly,
IndexSettings::blocksRead, etc.

Signed-off-by: Russ Cam <russcam@canva.com>

* add changelog entry

Signed-off-by: Russ Cam <russcam@canva.com>

* Add documentation and sample

Signed-off-by: Russ Cam <russcam@canva.com>

* Update IndexTemplates

Signed-off-by: Russ Cam <russcam@canva.com>

---------

Signed-off-by: Russ Cam <russcam@canva.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
reta pushed a commit to reta/opensearch-java that referenced this pull request Oct 27, 2023
* Add indexing and search index settings

This commit adds indexing and search settings to index settings. These
settings allow configuring of slow logs for indexing and search, as
well as setting search idle after.

Search idle after duplicates the individual
IndexSettings::searchIdleAfter property, but this pattern is already
present e.g. IndexSettings::blocks and IndexSettings::blocksReadOnly,
IndexSettings::blocksRead, etc.

Signed-off-by: Russ Cam <russcam@canva.com>

* add changelog entry

Signed-off-by: Russ Cam <russcam@canva.com>

* Add documentation and sample

Signed-off-by: Russ Cam <russcam@canva.com>

* Update IndexTemplates

Signed-off-by: Russ Cam <russcam@canva.com>

---------

Signed-off-by: Russ Cam <russcam@canva.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants