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

5. Adding Recommendation Updater Service [KRUIZE-VPA Integration] #1416

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

shekhar316
Copy link
Contributor

Description

This PR introduces a service for updating deployments for auto or recreate mode experiments.

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Tested on both the ResourceHub cluster.

Test Configuration

Kubernetes clusters tested on: ResourceHub (OpenShift)

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

@shekhar316 shekhar316 changed the title 5. Adding Recommendation Updater Service [KRUIZE-VPA Integration] 5. [WIP] Adding Recommendation Updater Service [KRUIZE-VPA Integration] Dec 9, 2024
@shekhar316 shekhar316 requested a review from dinogun December 10, 2024 07:25
@shekhar316 shekhar316 self-assigned this Dec 10, 2024
@shekhar316 shekhar316 added this to the Kruize 0.3 Release milestone Dec 10, 2024
@shekhar316 shekhar316 changed the title 5. [WIP] Adding Recommendation Updater Service [KRUIZE-VPA Integration] 5. Adding Recommendation Updater Service [KRUIZE-VPA Integration] Dec 10, 2024
Copy link
Member

@bharathappali bharathappali left a comment

Choose a reason for hiding this comment

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

LGTM

@shekhar316 shekhar316 force-pushed the vpa-service branch 3 times, most recently from 5214645 to 87eb9f2 Compare December 13, 2024 13:28
Signed-off-by: Shekhar Saxena <[email protected]>
Signed-off-by: Shekhar Saxena <[email protected]>
@dinogun
Copy link
Contributor

dinogun commented Dec 16, 2024

@shekhar316 Can you please add documentation for the "auto" and "recreate" modes in the design folder. Currently we have an docs for Monitoring and Experiment modes and we can create a common doc in UpdateModes.md

//todo load only experimentStatus=inprogress , playback may not require completed experiments
List<KruizeLMExperimentEntry> entries = null;
String statusValue = "failure";
Timer.Sample timerLoadAllExp = Timer.start(MetricsConfig.meterRegistry());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a new timer that is being added? Can you please update this file with the details on what this means

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't a new timer. It's already present timerLoadAllExp. Because the table name has changed in Local Monitoring mode to KruizeLMExperiments. The loadAllExperiments function was not returning anything due to this change. This new function is created to load experiments from the local monitoring table KruizeLMExperiments, but it is similar to loadAllExperiments which is used in remote monitoring case.

@shekhar316
Copy link
Contributor Author

@shekhar316 Can you please add documentation for the "auto" and "recreate" modes in the design folder. Currently we have an docs for Monitoring and Experiment modes and we can create a common doc in UpdateModes.md

Sure @dinogun , I will raise a PR for updated documentation by combining monitoring and experiment modes docs with auto and recreate modes.

Copy link
Contributor

@dinogun dinogun left a comment

Choose a reason for hiding this comment

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

LGTM

@dinogun dinogun merged commit 64b41a1 into kruize:mvp_demo Dec 16, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants