-
Notifications
You must be signed in to change notification settings - Fork 150
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
base: main
Are you sure you want to change the base?
feat: Support setting health check interval for model service #2825
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @jopemachine and the rest of your teammates on Graphite |
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.
Please refactor the health check process to utilize aiotools.create_timer()
.
70ef470
to
71bbc7a
Compare
Remaining tasks: We need to decide on the default value for the |
Fix #2817.
The existing code does not allow adjusting the
interval
between health check requests, and themax_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 checkinterval
.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)
interval