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

[Workload Management] Add rule schema for workload management #17238

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ruai0511
Copy link
Contributor

@ruai0511 ruai0511 commented Feb 3, 2025

Description

This PR introduces the schema for Rule object used in the workload management feature

{
    "_id": "fwhbuib397u4o03=="
    "index_pattern": ["logs123", "user*"],
    "query_group": "dev_query_group_id",
    "updated_at": "01-10-2025T21:23:456Z"
}

Related issues:
RFC: #16797
#16813

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

Copy link
Contributor

github-actions bot commented Feb 4, 2025

✅ Gradle check result for f6a4a28: SUCCESS

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 82.60870% with 24 lines in your changes missing coverage. Please review.

Project coverage is 72.44%. Comparing base (faabd10) to head (bb8d06c).
Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
server/src/main/java/org/opensearch/wlm/Rule.java 82.60% 9 Missing and 15 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17238      +/-   ##
============================================
+ Coverage     72.36%   72.44%   +0.07%     
- Complexity    65733    65825      +92     
============================================
  Files          5318     5319       +1     
  Lines        305674   305812     +138     
  Branches      44349    44376      +27     
============================================
+ Hits         221197   221535     +338     
+ Misses        66341    66128     -213     
- Partials      18136    18149      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

CHANGELOG.md Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
server/src/main/java/org/opensearch/wlm/Rule.java Outdated Show resolved Hide resolved
@ruai0511 ruai0511 added the backport 2.x Backport to 2.x branch label Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

❕ Gradle check result for bb8d06c: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants