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

Misc: add support to metricsSources property of podautoscaler #371

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

zhangjyr
Copy link
Collaborator

Pull Request Description

Currently, the metricsSources property in podAutoScaler is not considered. This pull request adds support to metricsSources, which will override the default KPA behavior that reads metrics from the model pods. In this pull request, only one metricsSource is supported. Extra metricsSources will be ignored.

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

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@zhangjyr zhangjyr requested review from kr11 and varungup90 November 11, 2024 23:18
@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 12, 2024

I will cut v0.1.0 release today and then come back to review and merge this change


if exists && value == "on" {
// 30080 is the nodePort of the base model service.
url = fmt.Sprintf("http://%s:8000/metrics", "localhost")
Copy link
Collaborator

Choose a reason for hiding this comment

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

the fixed value was for local desktop testing. removing it produce stops dev working as expected. this is ok for standarization. just take this note if testing doesn't work. @kr11 We need to pass the fixed port from client side.

@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 14, 2024

Overall, I think the refactor makes sense and looks good to me.

@Jeffwan
Copy link
Collaborator

Jeffwan commented Nov 15, 2024

@kr11 Feel free to leave comments and we can ask Jingyuan to help address it in next PR. I will merge this one first

@Jeffwan Jeffwan merged commit f4b99fb into main Nov 15, 2024
9 checks passed
@Jeffwan Jeffwan deleted the jingyuan/metrics-sources branch November 15, 2024 05:34
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
Add support to metricsSources

Co-authored-by: Jingyuan Zhang <[email protected]>
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.

2 participants