forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cluster primary balance contraint for rebalancing with buffer (op…
…ensearch-project#12656) Signed-off-by: Arpit-Bandejiya <abandeji@amazon.com> (cherry picked from commit 3491bcb) Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
- Loading branch information
1 parent
f69da6c
commit 6d67137
Showing
10 changed files
with
370 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
server/src/main/java/org/opensearch/cluster/routing/allocation/RebalanceParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.cluster.routing.allocation; | ||
|
||
/** | ||
* RebalanceConstraint Params | ||
*/ | ||
public class RebalanceParameter { | ||
private float preferPrimaryBalanceBuffer; | ||
|
||
public RebalanceParameter(float preferPrimaryBalanceBuffer) { | ||
this.preferPrimaryBalanceBuffer = preferPrimaryBalanceBuffer; | ||
} | ||
|
||
public float getPreferPrimaryBalanceBuffer() { | ||
return preferPrimaryBalanceBuffer; | ||
} | ||
} |
Oops, something went wrong.