-
Notifications
You must be signed in to change notification settings - Fork 69
make dynamic lora sidecar health check parameters configurable and force reconcile #605
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
Conversation
Hi @kaushikmitr. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
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.
Thanks!
timeout_seconds = config.get("healthCheckTimeoutSeconds", 300) | ||
self.health_check_timeout = datetime.timedelta(seconds=timeout_seconds) | ||
|
||
# Get health check interval from config with default of 15 seconds |
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.
default of 2 seconds
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.
yes made this 2 and refresh 5 and timeout 300
@@ -217,6 +233,9 @@ def reconcile(self): | |||
logging.info( | |||
f"reconciling model server {self.model_server} with config stored at {CONFIG_MAP_FILE}" | |||
) | |||
# Update health check settings from config before reconciliation | |||
self._update_health_check_settings() |
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.
why do we need to call it here again?
interval_seconds = config.get("healthCheckIntervalSeconds", 2) | ||
self.health_check_interval = datetime.timedelta(seconds=interval_seconds) | ||
|
||
# Get reconciliation trigger interval from config with default of 5 seconds |
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.
default is 1
"""Update health check settings from config""" | ||
config = self.config | ||
# Get health check timeout from config with default of 300 seconds | ||
timeout_seconds = config.get("healthCheckTimeoutSeconds", 300) |
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.
Those are better as command line flags or env vars to the container, similar to https://github.com/kubernetes-sigs/gateway-api-inference-extension/pull/605/files#diff-e5ae211d8cba1ab987311c2506ed80add46fe1f9d8f8c4ad08084439bb135364R15
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.
yes made them cmd line flags with defaults
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.
made the new params cmd line arugments with defaults
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, kaushikmitr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This pull request includes several enhancements and fixes to the
dynamic-lora-sidecar
tool, focusing on improving the Dockerfile, updating the README documentation, adding command-line argument support, and updating tests accordingly.Dockerfile and Documentation Updates:
tools/dynamic-lora-sidecar/Dockerfile
: Corrected theCOPY
command to ensure proper file copying.tools/dynamic-lora-sidecar/README.md
: Added sections for command-line arguments and an example deployment configuration.Command-Line Argument Support:
tools/dynamic-lora-sidecar/sidecar/sidecar.py
: Introducedargparse
for handling command-line arguments, updated theLoraReconciler
class to use these arguments, and modified related methods to utilize the new configuration parameters.Test Updates:
tools/dynamic-lora-sidecar/sidecar/test_sidecar.py
: Updated tests to include the new configuration parameters and validated the proper initialization of health check settings from command-line arguments.Tested With: