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 <[email protected]>

* Add integration test

Signed-off-by: Liyun Xiu <[email protected]>

* Add changelog

Signed-off-by: Liyun Xiu <[email protected]>

---------

Signed-off-by: Liyun Xiu <[email protected]>
…ile. (opensearch-project#14684)

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

Signed-off-by: Shailendra Singh <[email protected]>
…oject#14426)

* Optimize Cluster Stats Indices to precomute node level stats

Signed-off-by: Pranshu Shukla <[email protected]>
…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 <[email protected]>
cwperks and others added 23 commits July 31, 2024 20:23
…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 <[email protected]>

* modify change log

Signed-off-by: Gao Binlong <[email protected]>

* Fix version check

Signed-off-by: Gao Binlong <[email protected]>

---------

Signed-off-by: Gao Binlong <[email protected]>
…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] <[email protected]>

* Updating SHAs

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.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] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
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 <[email protected]>
…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 <[email protected]>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
…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 <[email protected]>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
…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] <[email protected]>

* Updating SHAs

Signed-off-by: dependabot[bot] <[email protected]>

* Update changelog

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
bharath-techie and others added 5 commits August 7, 2024 12:27
…-project#13897)

* initial code for the sandbox resource tracking and cancellation framework

Signed-off-by: Kiran Prakash <[email protected]>

* Fix Failing Tests

Signed-off-by: Kiran Prakash <[email protected]>

* spotless Apply

Signed-off-by: Kiran Prakash <[email protected]>

* Update SandboxService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update SandboxService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update SandboxTask.java

Signed-off-by: Kiran Prakash <[email protected]>

* Add java docs

Signed-off-by: Kiran Prakash <[email protected]>

* spotless

Signed-off-by: Kiran Prakash <[email protected]>

* javadocs

Signed-off-by: Kiran Prakash <[email protected]>

* javadocs

Signed-off-by: Kiran Prakash <[email protected]>

* java docs

Signed-off-by: Kiran Prakash <[email protected]>

* Update AbstractTaskCancellation.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update SandboxModule.java

Signed-off-by: Kiran Prakash <[email protected]>

* Some tests and stubs

Signed-off-by: Kiran Prakash <[email protected]>

* spotless

Signed-off-by: Kiran Prakash <[email protected]>

* :server:testingConventions

Signed-off-by: Kiran Prakash <[email protected]>

* Update AbstractTaskCancellation.java

Signed-off-by: Kiran Prakash <[email protected]>

* more tests

Signed-off-by: Kiran Prakash <[email protected]>

* addressing comments

Signed-off-by: Kiran Prakash <[email protected]>

* revert some accidentally pushed files

Signed-off-by: Kiran Prakash <[email protected]>

* resolve flakiness

Signed-off-by: Kiran Prakash <[email protected]>

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

Signed-off-by: Kiran Prakash <[email protected]>

* jvm to memory

Signed-off-by: Kiran Prakash <[email protected]>

* missing java docs

Signed-off-by: Kiran Prakash <[email protected]>

* spotless

Signed-off-by: Kiran Prakash <[email protected]>

* Update CHANGELOG.md
Signed-off-by: Kiran Prakash <[email protected]>

* pluck cancellation changes out of this PR

Signed-off-by: Kiran Prakash <[email protected]>

* remove unused

Signed-off-by: Kiran Prakash <[email protected]>

* remove cancellation related code and add more tests coverage

Signed-off-by: Kiran Prakash <[email protected]>

* us only memory and not jvm

Signed-off-by: Kiran Prakash <[email protected]>

* test conventions

Signed-off-by: Kiran Prakash <[email protected]>

* Bring back enum

Signed-off-by: Kiran Prakash <[email protected]>

* Update SearchBackpressureService.java

Signed-off-by: Kiran Prakash <[email protected]>

* revert changes

Signed-off-by: Kiran Prakash <[email protected]>

* revert changes

Signed-off-by: Kiran Prakash <[email protected]>

* all required changes

Signed-off-by: Kiran Prakash <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Kiran Prakash <[email protected]>

* cleanups

Signed-off-by: Kiran Prakash <[email protected]>

* Delete QueryGroupService.java

Signed-off-by: Kiran Prakash <[email protected]>

* cleanups

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupLevelResourceUsageViewTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupLevelResourceUsageViewTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update CHANGELOG.md
Signed-off-by: Kiran Prakash <[email protected]>

* rebasing with latest main

Signed-off-by: Kiran Prakash <[email protected]>

* remove experimental

Signed-off-by: Kiran Prakash <[email protected]>

* remove queryGroupId

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* change code comments

Signed-off-by: Kiran Prakash <[email protected]>

* remmove QueryGroupUsageTracker

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerService.java

Signed-off-by: Kiran Prakash <[email protected]>

* remove QueryGroupTestHelpers

Signed-off-by: Kiran Prakash <[email protected]>

* cleanups

Signed-off-by: Kiran Prakash <[email protected]>

* remove queryGroupHelper

Signed-off-by: Kiran Prakash <[email protected]>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* extend OpenSearchTestCase

Signed-off-by: Kiran Prakash <[email protected]>

* pr comments

Signed-off-by: Kiran Prakash <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Kiran Prakash <[email protected]>

* Update QueryGroupResourceUsageTrackerServiceTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update ResourceTypeTests.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update ResourceType.java

Signed-off-by: Kiran Prakash <[email protected]>

* Update ResourceType.java

Signed-off-by: Kiran Prakash <[email protected]>

---------

Signed-off-by: Kiran Prakash <[email protected]>
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.