Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposal: Introduce a "Scale Buffer", which ensures that
n
extra service instances are always running.We have had a number of customers which desire control over the number of instances that are available to serve requests. This is particularly important with GPU instances, which typically can only process a single request at a time. Specifically, they have voiced need for a feature that is able to ensure that
n
instances are always available to serve requests, above what the autoscale suggests. This ensures that even at low volumes, there is enough capacity.This proposal introduces a
scale-buffer
annotation on the service manifest, which statically addsn
to the desired pod count above the autoscaler suggestion for a KPA. Even though logic is pretty simple, we currently have this running in our KNative fork and it is working well. I figured it could be useful to others that are also running low-concurrency/no-concurrency workloads in the KNative community. Happy to amend it as needed if the maintainers wish to accept it as a proposal.