Skip to content

Make ProgressDeadlineSeconds configurable per service #12743

Closed

Description

@psschwei

In what area(s)?

/area API
/kind spec

Describe the feature

Currently, the ProgressDeadlineSeconds value is only configurable at the cluster level, which is done by setting a value for progress-deadline in the config-deployment configmap.

I'm proposing that we make this configurable on a per-revision basis by allowing users to set this value as an annotation. As a rough example:

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: helloworld-go
  namespace: default
spec:
  template:
    metadata:
      annotations:
        deployment.knative.dev/progress-deadline: "45s" 

(deployment.knative.dev is probably not the right annotation prefix, but I've never been good at naming things 😄)

We're already setting the initial replica count via an annotation, so we should be able to do something similar here (using the annotation value if provided, otherwise dropping back to the cluster-wide value).

Why I'm proposing this: I've come across a few issues where revisions are getting "stuck" (for lack of a better term) waiting 10 minutes for the progress deadline to be reached (for example #12691 , #11337 , #4416 ). It would be nice for users to be able to shorten this deadline if they are so inclined.

An alternative approach might be to drop the default, but it was already scaled up in #10495 (and matches the k8s default) and based on the discussion in #10344 seems like the higher default was the consensus. So for all those reasons, probably best not to mess with the default.

If there's no objections, I'll work on getting this ready.
/cc @dprotaso @evankanderson

Activity

  1. added
    kind/feature
    on Mar 17, 2022
  2. added
    area/API
    kind/spec
    on Mar 17, 2022
  3. psschwei commented on Mar 17, 2022

    @psschwei
    MemberAuthor

    /assign

  4. psschwei commented on Mar 17, 2022

    @psschwei
    MemberAuthor

    The KPA autoscaler currently gets this value from the configmap, so this would also need to be grabbed from the individual deployment somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/APIkind/featurekind/spec

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions