-
Notifications
You must be signed in to change notification settings - Fork 350
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: add support for min ready instances #1496
Conversation
Would this make more sense as a query parameter on the endpoint? Might be less invasive if the change is limited there as well |
Great idea. I love it. |
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.
Needs a unit test for when min-ready is not set. Optional: the ready() logic could be simplified and made clearer.
Also, return 503 is min ready exceeds total number of instances.
410de70
to
d15373a
Compare
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.
Looks good. The logic is correct. I provided a comment on the logic in ready() I'm curious for my own learning what you think.
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.
Looks much better.
Fixes #1375.