-
Notifications
You must be signed in to change notification settings - Fork 76
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
Auto expand replicas #539
Auto expand replicas #539
Conversation
Signed-off-by: Ashish Agrawal <[email protected]>
@@ -99,9 +101,13 @@ public static String ruleMappings() throws IOException { | |||
|
|||
public void initRuleIndex(ActionListener<CreateIndexResponse> actionListener, boolean isPrepackaged) throws IOException { | |||
if (!ruleIndexExists(isPrepackaged)) { | |||
Settings indexSettings = Settings.builder() | |||
.put("index.hidden", true) | |||
.put("index.auto_expand_replicas", "0-all") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this a miss?
have we already added this setting this for other system indices in SAP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These indices are auto generated, so it would cause single node clusters starting up to immediately be in a yellow state even if they do not use the plugin.
Codecov Report
@@ Coverage Diff @@
## main #539 +/- ##
============================================
- Coverage 25.77% 25.76% -0.01%
Complexity 942 942
============================================
Files 252 252
Lines 10768 10772 +4
Branches 1197 1197
============================================
Hits 2775 2775
- Misses 7746 7750 +4
Partials 247 247
|
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936)
* auto expand replicas (#539) Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936) * Remove extra import Signed-off-by: Ashish Agrawal <[email protected]> --------- Signed-off-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]>
* auto expand replicas (#539) Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936) * Remove extra import Signed-off-by: Ashish Agrawal <[email protected]> --------- Signed-off-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]>
* auto expand replicas (#539) Signed-off-by: Ashish Agrawal <[email protected]> (cherry picked from commit 1003936) * Remove extra import Signed-off-by: Ashish Agrawal <[email protected]> --------- Signed-off-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]> Co-authored-by: Ashish Agrawal <[email protected]>
* auto expand replicas (#539) Signed-off-by: Ashish Agrawal <[email protected]>
* Correlation engine ux (opensearch-project#524) * wip Signed-off-by: Amardeepsingh Siglani <[email protected]> * completed rules page; added placeholder for findings flyout tabs Signed-off-by: Amardeepsingh Siglani <[email protected]> * reverted change to show empty table Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated rule type Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated create correlation rule page Signed-off-by: Amardeepsingh Siglani <[email protected]> * correlation page wip Signed-off-by: Amardeepsingh Siglani <[email protected]> * Correlation store and API services Signed-off-by: Jovan Cvetkovic <[email protected]> * Correlation store and API services Signed-off-by: Jovan Cvetkovic <[email protected]> * Correlation store and API services Signed-off-by: Jovan Cvetkovic <[email protected]> * Correlation store and API services Signed-off-by: Jovan Cvetkovic <[email protected]> * Correlation store and API services Signed-off-by: Jovan Cvetkovic <[email protected]> * updated correlations page Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated store interfaces Signed-off-by: Amardeepsingh Siglani <[email protected]> * fixed correlation store Signed-off-by: Amardeepsingh Siglani <[email protected]> * added api for all correlations Signed-off-by: Amardeepsingh Siglani <[email protected]> * added filter support for correlations Signed-off-by: Amardeepsingh Siglani <[email protected]> * using apis; added validation Signed-off-by: Amardeepsingh Siglani <[email protected]> * Implemented logic to populate correlations tables data. Signed-off-by: AWSHurneyt <[email protected]> * restricted to AND Signed-off-by: Amardeepsingh Siglani <[email protected]> * log type clearable Signed-off-by: Amardeepsingh Siglani <[email protected]> * code cleanup Signed-off-by: Jovan Cvetkovic <[email protected]> * fixed API issue Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated snapshots Signed-off-by: Amardeepsingh Siglani <[email protected]> * ux improvements Signed-off-by: Amardeepsingh Siglani <[email protected]> * code cleanup Signed-off-by: Jovan Cvetkovic <[email protected]> * removed redundant code Signed-off-by: Amardeepsingh Siglani <[email protected]> * removed unwanted param Signed-off-by: Amardeepsingh Siglani <[email protected]> * connected refresh Signed-off-by: Amardeepsingh Siglani <[email protected]> --------- Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: Jovan Cvetkovic <[email protected]> Signed-off-by: AWSHurneyt <[email protected]> Co-authored-by: Jovan Cvetkovic <[email protected]> Co-authored-by: AWSHurneyt <[email protected]> (cherry picked from commit f565a923c6bfec1b8a69128d21e5d823a50cb142) * Removed duplicate import for EuiSpacer (opensearch-project#538) (opensearch-project#540) * removed duplicate import * updated snapshots --------- Signed-off-by: Amardeepsingh Siglani <[email protected]> * Pinned babel traverse and core (opensearch-project#539) (opensearch-project#544) * pinned babel traverse and core * removed cyclic dependency * added types for vis * refactored code --------- Signed-off-by: Amardeepsingh Siglani <[email protected]> --------- Signed-off-by: Amardeepsingh Siglani <[email protected]> Co-authored-by: Amardeepsingh Siglani <[email protected]>
Description
Auto expand replicas so for single node clusters, it wouldn't try to create a replica and cause the cluster to be yellow
Issues Resolved
N/A
Check List
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.