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

[Backport 2.x] SearchBackPressure Policy/Decider Generic Framework Added #497

Merged
merged 1 commit into from
Oct 5, 2023

Commits on Oct 5, 2023

  1. SearchBackPressure Policy/Decider Generic Framework Added (#461)

    * Remove log files and add DCO (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove extra files (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove styling difference (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove unnecessary file changes (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add RCA_Decider (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Extract Heap Usage from SQlitedb (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Extract required searchbp metrics for deciders (signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add SearchBackPressureRCA Metric (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Use SearchBackPressureRCAMetrics to aggregate metrics (signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add the conf file extracted part for SearchBackPressureRcaConfig.java (signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add MinMaxSlidingWindow in OldGenRca (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Rename SearchBackPressureClusterRCA and add it to AnalysisGraph (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add basic UTs for SearchBackPressureRCA cluster/node level (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add unhealthy/healthy stats UTs for SearchBackPressureRCA cluster/node level (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add healthy resource unit UT (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add UT s both shard/task level (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add a new SearchBp Resource Unit (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add UTs to test shard/task level resource include-ness (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove styling changes for Version.java (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add metadata to resourceSummary (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Update to more general framework (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Refactor the MinMaxSlidingWindow and bug fix (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Refactor Heap Stats Metrics Getter(Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Refactor HeapUsed and HeapMax Getters (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Refactor operate() (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Refactor operate() and remove dead comments (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add new ActionPojo for Searchbp  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add new ActionPojo for Searchbp#2  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Update SearchBackPressureAction (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add Searchbp Decider (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add Searchbp Policy and Config (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add dummy Searchbp Policy and Config in OpenSearchAnalysis Graph (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Update SearchBackpressure Policy (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Update SearchBackpressure Policy (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Merged Main (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add new AlarmMonitor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Workable decider (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Workable decider (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Workable pipeline (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Workable pipeline (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Update ActionPojo  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Framework can read from config (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add Policy Increase/Decrease Alarm  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Generic Framework can generate shard/task and increase/decrease actions  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Generic Framework can generate specific actions and read from config  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * removed dead comment for SearchBpActionConfig.java (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * removed dead comment for action/polict (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * removed dead comment for action/policy (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add increase/decrease direction for ActionPojo  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * remove trailing (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Restore to workable solution
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Restore to workable solution (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * remove hourly window size and bucket size (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add hourMonitorConfig to set up alarm monitor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove unused counter  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * change field description  (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * refactor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * enum added for direction and shard/task dimension (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Use enum for Dimension/Direction for Searchbp Action (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Add lambda function for next() in OldGenRCA (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Merged main with build.gradle (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * resolve nit#1 (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * resolve nit#2 (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * refactor OpenSearchAnalysisGraph (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * stream() refactor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * null check refactor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Change LOG to debug level for unnecessary info (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * refactor shar/task issue (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * nit fix (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Added JavaDoc for Searchbp Action (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * SearchBackPressureIssue Interface created for refactor (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    * Remove dead comment (Signed-off-by: Jeffrey Liu [email protected])
    
    Signed-off-by: CoderJeffrey <[email protected]>
    
    ---------
    
    Signed-off-by: CoderJeffrey <[email protected]>
    (cherry picked from commit 749da27)
    CoderJeffrey authored and github-actions[bot] committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    db653e2 View commit details
    Browse the repository at this point in the history