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

[RW Separation] Introduce allocation filter to control placement of search only replicas #15455

Merged
merged 11 commits into from
Sep 4, 2024

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Aug 27, 2024

Description

Introduce allocation filter to control placement of search only replicas.

The new filter cluster.routing.allocation.search.replica.dedicated.include acts as a normal include filter in that you can specify multiple values and search shards will allocate there if one of the attributes is present on a particular node. However, it is different from existing include filters in that it is exclusive to search replicas and will exclude any non search shard for all of the attributes set.

Related Issues

Resolves #15445

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • 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.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@mch2 mch2 added the backport 2.x Backport to 2.x branch label Aug 30, 2024
@mch2 mch2 force-pushed the alloc-split branch 2 times, most recently from f8b2a81 to 45e354f Compare August 30, 2024 20:30

This comment was marked as outdated.

@mch2
Copy link
Member Author

mch2 commented Sep 4, 2024

❌ Gradle check result for 05d8e19:

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?

#14328

Copy link
Contributor

github-actions bot commented Sep 4, 2024

✅ Gradle check result for 05d8e19: SUCCESS

@mch2 mch2 merged commit b345439 into opensearch-project:main Sep 4, 2024
38 of 40 checks passed
@mch2 mch2 deleted the alloc-split branch September 4, 2024 21:36
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
…earch only replicas (#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
(cherry picked from commit b345439)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
…earch only replicas (#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
(cherry picked from commit b345439)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mch2 added a commit to mch2/OpenSearch that referenced this pull request Sep 4, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
mch2 added a commit to mch2/OpenSearch that referenced this pull request Sep 4, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
…earch only replicas (opensearch-project#15455)

* Introduce allocation filter to control placement of search only replicas

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Add a new decider rather than updating the existing FilterAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix license header and description on SearchReplicaAllocationDecider

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Pr feedback.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Fix class name to pass precommit checks

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* Refactor all search replica create/update tests to a single OpenSearchSingleNodeTestCase.

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

* remove changelog entry

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>

---------

Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RW Separation] Add Allocation filter based on shard type.
2 participants