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

Register agent API support for MLClient #1647

Conversation

arjunkumargiri
Copy link
Contributor

@arjunkumargiri arjunkumargiri commented Nov 16, 2023

Description

Register agent API support for MLClient. This will allow flow framework to integrate with register agent API.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

b4sjoo and others added 30 commits November 29, 2022 12:49
opensearch-project#581)

* return circuit breaker name in error messages

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Xun Zhang <[email protected]>
opensearch-project#583)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…ensearch-project#584)

* chunk upload api
Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Co-authored-by: Bhavana Ramaram <[email protected]>
…ct#510) (opensearch-project#586)

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Xun Zhang <[email protected]>
…h-project#598)

* use small model to run integ test

Signed-off-by: Yaliang Wu <[email protected]>

* tune custom model integ test

Signed-off-by: Yaliang Wu <[email protected]>

* close file stream

Signed-off-by: Yaliang Wu <[email protected]>

* decrease disk circuit breaker limit

Signed-off-by: Yaliang Wu <[email protected]>

* add more test cases for model manager

Signed-off-by: Yaliang Wu <[email protected]>

* tune model profile verification

Signed-off-by: Yaliang Wu <[email protected]>

* tune ML engine and integ test

Signed-off-by: Yaliang Wu <[email protected]>

* add integ test on multi data node cluster

Signed-off-by: Yaliang Wu <[email protected]>

* add unit test for forward action

Signed-off-by: Yaliang Wu <[email protected]>

* add predict request duration in profile response

Signed-off-by: Yaliang Wu <[email protected]>

* ignore custom integ test

Signed-off-by: Yaliang Wu <[email protected]>

* fix ml engine after merging 2.x

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…mmons pakage (opensearch-project#517) (opensearch-project#601)

Signed-off-by: Xun Zhang <[email protected]>

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Xun Zhang <[email protected]>
…ject#530) (opensearch-project#607)

* change the max_ml_task_per_node into dynamic settings

Signed-off-by: Sicheng Song <[email protected]>

* Trying to bypassing the flaky test

Signed-off-by: Sicheng Song <[email protected]
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Sicheng Song <[email protected]
Signed-off-by: Sicheng Song <[email protected]>
opensearch-project#608)

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Xun Zhang <[email protected]>
…oject#540) (opensearch-project#612)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
… (opensearch-project#613)

* fix running tasks when circuit breaker is open

Signed-off-by: Yaliang Wu <[email protected]>

* fix log error message

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…) (opensearch-project#614)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…arch-project#615)

Signed-off-by: Bhavana Ramaram <[email protected]>

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Bhavana Ramaram <[email protected]>
…nsearch-project#561) (opensearch-project#617)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…roject#573) (opensearch-project#618)

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Bhavana Ramaram <[email protected]>
…oject#580) (opensearch-project#619)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…earch-project#620)

Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
…pensearch-project#621)

* unit tests coverage for load/unload/syncup

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Bhavana Ramaram <[email protected]>
Signed-off-by: Yaliang Wu <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>

Signed-off-by: Yaliang Wu <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot for the change

@ylwu-amzn
Copy link
Collaborator

BTW, the Github CI failed, maybe need to rebase ?

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 32 lines in your changes are missing coverage. Please review.

Comparison is base (1b76eb1) 71.53% compared to head (594c73c) 67.25%.
Report is 324 commits behind head on feature/agent_framework_dev.

❗ Current head 594c73c differs from pull request most recent head 5759bf2. Consider uploading reports for the commit 5759bf2 to get more accurate results

Files Patch % Lines
...pensearch/ml/client/MachineLearningNodeClient.java 77.96% 24 Missing and 2 partials ⚠️
...rg/opensearch/ml/client/MachineLearningClient.java 75.00% 6 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##             feature/agent_framework_dev    #1647      +/-   ##
=================================================================
- Coverage                          71.53%   67.25%   -4.29%     
- Complexity                           802     2504    +1702     
=================================================================
  Files                                 86      227     +141     
  Lines                               3267    12239    +8972     
  Branches                             309     1263     +954     
=================================================================
+ Hits                                2337     8231    +5894     
- Misses                               813     3455    +2642     
- Partials                             117      553     +436     
Flag Coverage Δ
ml-commons 67.25% <77.46%> (-4.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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

Successfully merging this pull request may close these issues.