Skip to content

Updated nomenclature to differentiate between hot and warm tiering implementation.#17490

Merged
gbbafna merged 1 commit intoopensearch-project:mainfrom
mayanksharma27:smynk-tiering-1
Mar 17, 2025
Merged

Updated nomenclature to differentiate between hot and warm tiering implementation.#17490
gbbafna merged 1 commit intoopensearch-project:mainfrom
mayanksharma27:smynk-tiering-1

Conversation

@mayanksharma27
Copy link
Copy Markdown
Contributor

Description

  • We currently only have tiering implementation for warm indices.
  • The current nomenclature for feature flags and settings are too generic and cant differentiate between hot and warm indices.
  • Since we want to implement tiering for hot indices as well in near future; we would want to update the nomenclature to be extensible and easy to understand, this PR present the nomenclature changes.

Related Issues

Resolves #[17489]

Meta Issue #13149

Check List

  • [NA] Functionality includes testing.
  • [NA ] API changes companion pull request created, if applicable.
  • [NA] Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for e920df4: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

mayanksharma27 added a commit to mayanksharma27/OpenSearch that referenced this pull request Mar 4, 2025
Signed-off-by: Mayank Sharma <smynk@amazon.com>
Copy link
Copy Markdown
Contributor Author

@mayanksharma27 mayanksharma27 left a comment

Choose a reason for hiding this comment

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

Addressed comments from @gbbafna

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2025

✅ Gradle check result for 5552edd: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 69.56522% with 7 lines in your changes missing coverage. Please review.

Project coverage is 72.42%. Comparing base (2ee8660) to head (a32221e).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
.../opensearch/index/engine/NRTReplicationEngine.java 0.00% 0 Missing and 2 partials ⚠️
...in/java/org/opensearch/index/shard/IndexShard.java 0.00% 1 Missing and 1 partial ⚠️
...ing/allocation/allocator/RemoteShardsBalancer.java 0.00% 1 Missing ⚠️
...c/main/java/org/opensearch/index/IndexService.java 50.00% 0 Missing and 1 partial ⚠️
.../indices/replication/SegmentReplicationTarget.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17490      +/-   ##
============================================
- Coverage     72.43%   72.42%   -0.02%     
- Complexity    65694    65728      +34     
============================================
  Files          5311     5311              
  Lines        304937   304933       -4     
  Branches      44226    44225       -1     
============================================
- Hits         220872   220836      -36     
- Misses        65912    65995      +83     
+ Partials      18153    18102      -51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mayanksharma27 added a commit to mayanksharma27/OpenSearch that referenced this pull request Mar 6, 2025
…ntation for warm and upcoming hot implementation

commit 5552edd
Author: Mayank Sharma <smynk@amazon.com>
Date:   Thu Mar 6 16:38:38 2025 +0530

    Empty commit to rerun flaky test

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit d18bd6e
Author: Mayank Sharma <smynk@amazon.com>
Date:   Thu Mar 6 14:25:33 2025 +0530

    Ran spotlessapply

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit d5ac854
Author: Mayank Sharma <smynk@amazon.com>
Date:   Wed Mar 5 19:59:05 2025 +0530

    Empty commit to rerun flaky test

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit 44000ee
Author: Mayank Sharma <smynk@amazon.com>
Date:   Wed Mar 5 19:17:00 2025 +0530

    Fixed failing UTs for ShardsTieringAllocationTests

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit 03a9305
Author: Mayank Sharma <smynk@amazon.com>
Date:   Wed Mar 5 17:54:33 2025 +0530

    Empty commit to rerun flaky test

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit 795936a
Author: Mayank Sharma <smynk@amazon.com>
Date:   Wed Mar 5 12:10:18 2025 +0530

    Updated settings from "index.is.warm" to "index.warm" as part of PR comments opensearch-project#17490

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit 724b934
Author: Mayank Sharma <smynk@amazon.com>
Date:   Tue Mar 4 17:09:19 2025 +0530

    Addressed comments for PR opensearch-project#17490

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

commit f1a249f
Author: Mayank Sharma <smynk@amazon.com>
Date:   Fri Feb 28 19:02:24 2025 +0530

    Updated nomenclature to differentiate between current tiering implementation for warm and upcoming hot implementation

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

Signed-off-by: Mayank Sharma <smynk@amazon.com>
mayanksharma27 added a commit to mayanksharma27/OpenSearch that referenced this pull request Mar 6, 2025
…current tiering implementation for warm and upcoming hot implementation

commit 9cdec49
Author: Mayank Sharma <smynk@amazon.com>
Date:   Thu Mar 6 18:04:16 2025 +0530

    Updated nomenclature to differentiate between current tiering implementation for warm and upcoming hot implementation

    commit 5552edd
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Thu Mar 6 16:38:38 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit d18bd6e
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Thu Mar 6 14:25:33 2025 +0530

        Ran spotlessapply

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit d5ac854
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 19:59:05 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 44000ee
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 19:17:00 2025 +0530

        Fixed failing UTs for ShardsTieringAllocationTests

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 03a9305
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 17:54:33 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 795936a
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 12:10:18 2025 +0530

        Updated settings from "index.is.warm" to "index.warm" as part of PR comments opensearch-project#17490

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 724b934
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Tue Mar 4 17:09:19 2025 +0530

        Addressed comments for PR opensearch-project#17490

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit f1a249f
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Fri Feb 28 19:02:24 2025 +0530

        Updated nomenclature to differentiate between current tiering implementation for warm and upcoming hot implementation

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

Signed-off-by: Mayank Sharma <smynk@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2025

❌ Gradle check result for 3c323e2: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@mayanksharma27
Copy link
Copy Markdown
Contributor Author

Flaky integ tests failing - #11037

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 33f94d1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for e6e82ca: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 33f94d1: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

…current tiering implementation for warm and upcoming hot implementation

commit 9cdec49
Author: Mayank Sharma <smynk@amazon.com>
Date:   Thu Mar 6 18:04:16 2025 +0530

    Updated nomenclature to differentiate between current tiering implementation for warm and upcoming hot implementation

    commit 5552edd
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Thu Mar 6 16:38:38 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit d18bd6e
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Thu Mar 6 14:25:33 2025 +0530

        Ran spotlessapply

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit d5ac854
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 19:59:05 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 44000ee
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 19:17:00 2025 +0530

        Fixed failing UTs for ShardsTieringAllocationTests

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 03a9305
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 17:54:33 2025 +0530

        Empty commit to rerun flaky test

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 795936a
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Wed Mar 5 12:10:18 2025 +0530

        Updated settings from "index.is.warm" to "index.warm" as part of PR comments opensearch-project#17490

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit 724b934
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Tue Mar 4 17:09:19 2025 +0530

        Addressed comments for PR opensearch-project#17490

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    commit f1a249f
    Author: Mayank Sharma <smynk@amazon.com>
    Date:   Fri Feb 28 19:02:24 2025 +0530

        Updated nomenclature to differentiate between current tiering implementation for warm and upcoming hot implementation

        Signed-off-by: Mayank Sharma <smynk@amazon.com>

    Signed-off-by: Mayank Sharma <smynk@amazon.com>

Signed-off-by: Mayank Sharma <smynk@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for a32221e: null

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for a32221e: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for a32221e: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Copy Markdown
Contributor

@Bukhtawar Bukhtawar left a comment

Choose a reason for hiding this comment

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

Is there a difference between searchable snapshot index vs tiered warm index?

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for a32221e: SUCCESS

@gbbafna
Copy link
Copy Markdown
Contributor

gbbafna commented Mar 17, 2025

Is there a difference between searchable snapshot index vs tiered warm index?

Yes, index settings are different for both of them . For tiered warm index , store.data_locality is set to partial , whereas for searchable snapshots index.store.type: remote_snapshot is used.

@gbbafna gbbafna merged commit e27cf58 into opensearch-project:main Mar 17, 2025
31 of 32 checks passed
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Mar 18, 2025
… current tiering implementation for warm and upcoming hot implementation (opensearch-project#17490)

Signed-off-by: Mayank Sharma <smynk@amazon.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
IndexModule.INDEX_STORE_LOCALITY_SETTING.getKey(),
IndexModule.DataLocalityType.FULL.toString()
).equalsIgnoreCase(IndexModule.DataLocalityType.PARTIAL.toString());

Copy link
Copy Markdown
Contributor

@skumawat2025 skumawat2025 Apr 16, 2025

Choose a reason for hiding this comment

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

I am sorry if i missed anything earlier. but why are we removing this setting?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We are not removing , but renaming the setting .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok. So after this change. To create a warm index we need to provide setting
warm.index: true and no need to specify the data_locality setting is it?
In this case it should pick up the index.data_locality: PARTIAL value by default?

rayshrey pushed a commit to rayshrey/OpenSearch that referenced this pull request Jun 26, 2025
… current tiering implementation for warm and upcoming hot implementation (opensearch-project#17490)

Signed-off-by: Mayank Sharma <smynk@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants