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

knative-serving: Disable scale-to-zero feature #6625

Closed
wants to merge 1 commit into from
Closed

knative-serving: Disable scale-to-zero feature #6625

wants to merge 1 commit into from

Conversation

antoineco
Copy link
Contributor

@antoineco antoineco commented Dec 13, 2019

Description

Changes proposed in this pull request:

  • Disable Knative Serving's scale-to-zero feature

Side effect: forces every Revision to have at least one replica running. Revisions multiply over time, leaving running Pods around.

$ kubectl -n kyma-integration get revision
NAME               CONFIG NAME   K8S SERVICE NAME   GENERATION   READY
stuff-h49dg        stuff         stuff-h49dg        6            True
stuff-j69tt        stuff         stuff-j69tt        4            True
stuff-kvx5b        stuff         stuff-kvx5b        7            True
stuff-tpv6n        stuff         stuff-tpv6n        5            True
$ kubectl -n kyma-integration get pod -l  serving.knative.dev/service=stuff
NAME                                      READY   STATUS    RESTARTS   AGE
stuff-h49dg-deployment-fd66946f9-p27qz    3/3     Running   0          15m
stuff-j69tt-deployment-5bdfd76b8c-4qzzr   3/3     Running   0          24m
stuff-kvx5b-deployment-66569865c7-vlztn   3/3     Running   0          15m
stuff-tpv6n-deployment-84979b8ddc-qvwqq   3/3     Running   0          15m

Related issue(s)

#5352
#6619

@antoineco antoineco added the area/serverless Issues or PRs related to serverless label Dec 13, 2019
@antoineco antoineco added this to the Sprint_SkydivingTunas_8 milestone Dec 13, 2019
@antoineco antoineco requested a review from a user December 13, 2019 16:43
@antoineco antoineco self-assigned this Dec 13, 2019
@k15r
Copy link
Contributor

k15r commented Dec 16, 2019

I don't see why we should do this. We can disable scale to zero per service using autoscaling.knative.dev/minScale: "1". Your solution would prevent scale-to-zero for all ksvcs.

@antoineco antoineco closed this Dec 16, 2019
@antoineco antoineco deleted the disable-knative-scaleto0 branch December 16, 2019 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/serverless Issues or PRs related to serverless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants