-
Notifications
You must be signed in to change notification settings - Fork 257
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
[Bug] Accumulated bug fix on controller manager, mock app configuration, and gpu optimizer. #522
Conversation
Add test case for make url created from metricSource as expected: endpoint should include port, if not and port is specified, port will be append to endpoint.
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.
overall looks good to me.
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: simulator-llama2-7b-a40 | ||
metricsSources: | ||
- endpoint: aibrix-gpu-optimizer.aibrix-system.svc.cluster.local:8080 | ||
- metricSourceType: domain |
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.
great to see new api is adopted.
type RestMetricsFetcher struct{} | ||
type RestMetricsFetcher struct { | ||
// For unit test purpose only | ||
test_url_setter func(string) |
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.
this is acceptable at this moment, we could consider RestMetricsFetcher interface later to better support testing
@@ -101,7 +100,7 @@ async def send_request( | |||
# "top_p": 1.0, | |||
"max_tokens": output_len, | |||
# "ignore_eos": True, | |||
# "stream": stream, | |||
# "stream": streaming |
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.
nice catch.
…on, and gpu optimizer. (#522) * Bug fix * Fix configuration for domain podautoscaler Add test case for make url created from metricSource as expected: endpoint should include port, if not and port is specified, port will be append to endpoint. * Lint fix * Add license for new files. * Lint fix on added unit test. --------- Co-authored-by: Jingyuan Zhang <[email protected]>
Pull Request Description
This PR fixed:
A new unit test is added to ensure the controller manager handles the URL of domain metricsSource correctly.
Related Issues
Resolves: #[Insert issue number(s)]
Important: Before submitting, please complete the description above and review the checklist below.
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]
: Corrections to existing functionality[CI]
: Changes to build process or CI pipeline[Docs]
: Updates or additions to documentation[API]
: Modifications to aibrix's API or interface[CLI]
: Changes or additions to the Command Line Interface[Misc]
: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.