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

feat: Support setting health check interval for model service #2825

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jopemachine
Copy link
Member

@jopemachine jopemachine commented Sep 10, 2024

Fix #2817.

The existing code does not allow adjusting the interval between health check requests, and the max_wait_time is always used as both the interval and the response timeout value.

This PR keeps the max_wait_time as the value that triggers a timeout and adds a separate setting that specifies the health check interval.

Detail

For example, if a health check request is successful, the next health check request will be sent after the interval.

If the health check request fails, meaning the server responds but with an incorrect response code, the next health check request will be sent after waiting for the interval.

If the server does not respond, the health check request will be sent after waiting for the max_wait_time.


Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Determine a sensible default value for the interval

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jopemachine and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added comp:agent Related to Agent component comp:common Related to Common component size:XS ~10 LoC labels Sep 10, 2024
Copy link
Member

@kyujin-cho kyujin-cho left a comment

Choose a reason for hiding this comment

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

Please refactor the health check process to utilize aiotools.create_timer().

@jopemachine jopemachine force-pushed the topic/09-10-feat_support_setting_health_check_interval_for_model_service branch from 70ef470 to 71bbc7a Compare September 26, 2024 08:11
@jopemachine jopemachine added the type:feature Add new features label Sep 30, 2024
@jopemachine
Copy link
Member Author

jopemachine commented Sep 30, 2024

Remaining tasks: We need to decide on the default value for the interval and the milestone.

@jopemachine jopemachine marked this pull request as ready for review September 30, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:agent Related to Agent component comp:common Related to Common component size:XS ~10 LoC type:feature Add new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support setting health check interval for model service runtimes
2 participants