Skip to content

Don't scale to 1 upon deploy #4098

@duglin

Description

@duglin

In what area(s)?

/area API
/area autoscale

Other classifications:
/kind good-first-issue
/kind spec

Describe the feature

Right now when a new KnService is deployed it is automatically scaled up to one instance. I believe this is incorrect, it should be scaled to zero by default. For a couple of reasons:

  • when not being used, w/o minScale > 0, services will scale to zero.... the service has not been used yet
  • when $ is involved with the running of the pods associated with a service, end-users will not expect to be charged when no one called their service... starting with a scale of 1 means they will be charged even though no one called their service, violating that "only pay for what you use" contract
  • the current behavior treats "deploy" time differently from any other time the service is alive. I see no reason to think that the 90 seconds immediately after a service is created is any different from any other time
  • if people really think "deploy time" is special, then we should call it out explicitly by allowing the user to specify a default scale value (either on the Service itself or via some Kn-wide config) rather than assuming the same needs apply to all users. Then they can also choose something other than "1" if they want.

/cc @nimakaviani

edit: proposal: provide a config knob so people can choose if they want to scale to 1 on deploy.

Metadata

Metadata

Assignees

Labels

area/APIAPI objects and controllersarea/autoscalekind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions