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

HotToWarmTieringService changes and changes in shard balancer to tier shards #144

Draft
wants to merge 68 commits into
base: tiering
Choose a base branch
from

Conversation

neetikasinghal
Copy link
Owner

@neetikasinghal neetikasinghal commented Jul 16, 2024

Description

Related Issues

opensearch-project#14545
opensearch-project#13980

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@neetikasinghal neetikasinghal requested a review from sohami as a code owner July 16, 2024 22:41
* pool.
*/
public void tierShards() {
List<ShardRouting> shardsPendingTiering = new ArrayList<>();

Choose a reason for hiding this comment

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

It might be better to break this down into replicas and primary.
We can run the operation on replicas first, and the migration for primary would handle the scenario of flipping replica to primary.
(There would be a case where you have no replica - which is fine. But when you do, it is safer)

chishui and others added 6 commits July 23, 2024 08:14
…roject#14812)

* Use default value when index.number_of_replicas is null

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Add integration test

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

* Add changelog

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>

---------

Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
…ile. (opensearch-project#14684)

* Implement write and read flow to upload/download shard diff file.

Signed-off-by: Shailendra Singh <singhlhs@amazon.com>
…oject#14426)

* Optimize Cluster Stats Indices to precomute node level stats

Signed-off-by: Pranshu Shukla <pranshushukla06@gmail.com>
…ary shards per index (opensearch-project#14908)

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
…ch-project#14918)

The test would previously fail if the randomness led to only a single
indexing request being included in the bulk payload. This change
guarantees multiple indexing requests in order to ensure the batch logic
kicks in.

Also replace some unneeded mocks with real classes.

Signed-off-by: Andrew Ross <andrross@amazon.com>
cwperks and others added 23 commits July 31, 2024 20:23
…shAndMergeHeaders (opensearch-project#15051)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
…ch distribution (opensearch-project#15082)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Resolves: opensearch-project#14706

Signed-off-by: Peter Nied <peternied@hotmail.com>
…ta stream but is unused (opensearch-project#15080)

* Fix delete not-using index template failed when the index pattern matches a data stream

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* modify change log

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Fix version check

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

---------

Signed-off-by: Gao Binlong <gbinlong@amazon.com>
Signed-off-by: Craig Perkins <craig5008@gmail.com>
…e failed (opensearch-project#15101)

Signed-off-by: Gao Binlong <gbinlong@amazon.com>
…pensearch-project#15110)

* Bump org.tukaani:xz from 1.9 to 1.10 in /plugins/ingest-attachment

Bumps [org.tukaani:xz](https://github.com/tukaani-project/xz-java) from 1.9 to 1.10.
- [Release notes](https://github.com/tukaani-project/xz-java/releases)
- [Changelog](https://github.com/tukaani-project/xz-java/blob/master/NEWS.md)
- [Commits](tukaani-project/xz-java@v1.9...v1.10)

---
updated-dependencies:
- dependency-name: org.tukaani:xz
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
…NDEX_SETTING feature (opensearch-project#15076)

Signed-off-by: Neetika Singhal <neetiks@amazon.com>
* Bump actions/setup-java from 1 to 4

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v1...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
…#15086)

GitHub doesn't suport dynamic days since created/modified, I've created
a simple redirect on my website that will support this use case. See
https://peternied.github.io/redirect/issue_search.html for full context
on what is avaliable.

Source is available on https://github.com/peternied/peternied.github.io

Signed-off-by: Peter Nied <peternied@hotmail.com>
…y-hdfs (opensearch-project#15119)

* Bump org.apache.avro:avro from 1.11.3 to 1.12.0 in /plugins/repository-hdfs

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
…astle:bc-fips from 1.0.2.5 to 2.0.0 (opensearch-project#15122)

* Bump org.bouncycastle:bcpg-fips from 1.0.7.1 to 2.0.8 and org.bouncycastle:bc-fips from 1.0.2.5 to 2.0.0 in /distribution/tools/plugin-cli

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: David Zane <davizane@amazon.com>
…onstant_keyword field type (opensearch-project#15127)

Signed-off-by: Gao Binlong <gbinlong@amazon.com>
…y-azure (opensearch-project#15111)

* Bump com.azure:azure-core in /plugins/repository-azure

Bumps [com.azure:azure-core](https://github.com/Azure/azure-sdk-for-java) from 1.49.1 to 1.51.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-java/releases)
- [Commits](Azure/azure-sdk-for-java@azure-core_1.49.1...azure-core_1.51.0)

---
updated-dependencies:
- dependency-name: com.azure:azure-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updating SHAs

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Signed-off-by: Liyun Xiu <xiliyun@amazon.com>
Signed-off-by: Jay Deng <jayd0104@gmail.com>
bharath-techie and others added 5 commits August 7, 2024 12:27
---------

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
…-project#13897)

* initial code for the sandbox resource tracking and cancellation framework

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Fix Failing Tests

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* spotless Apply

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update SandboxService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update SandboxService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update SandboxTask.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Add java docs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* spotless

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* javadocs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* javadocs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* java docs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update AbstractTaskCancellation.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update SandboxModule.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Some tests and stubs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* spotless

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* :server:testingConventions

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update AbstractTaskCancellation.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* more tests

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* addressing comments

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* revert some accidentally pushed files

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* resolve flakiness

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* renaming sandbox to querygroup and adjusting code based on merged PRs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* jvm to memory

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* missing java docs

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* spotless

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update CHANGELOG.md
Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* pluck cancellation changes out of this PR

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove unused

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove cancellation related code and add more tests coverage

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* us only memory and not jvm

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* test conventions

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Bring back enum

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update SearchBackpressureService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* revert changes

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* revert changes

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* all required changes

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update CHANGELOG.md

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanups

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Delete QueryGroupService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanups

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupLevelResourceUsageViewTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupLevelResourceUsageViewTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update CHANGELOG.md
Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* rebasing with latest main

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove experimental

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove queryGroupId

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* change code comments

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remmove QueryGroupUsageTracker

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove QueryGroupTestHelpers

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* cleanups

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* remove queryGroupHelper

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* extend OpenSearchTestCase

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* pr comments

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update CHANGELOG.md

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update QueryGroupResourceUsageTrackerServiceTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update ResourceType.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

* Update ResourceType.java

Signed-off-by: Kiran Prakash <awskiran@amazon.com>

---------

Signed-off-by: Kiran Prakash <awskiran@amazon.com>
Signed-off-by: Jay Deng <jayd0104@gmail.com>
Signed-off-by: Neetika Singhal <neetiks@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.