这是indexloc提供的服务,不要输入任何密码
Skip to content

Add configurable timeout for digest resolution #9455

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

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

julz
Copy link
Member

@julz julz commented Sep 17, 2020

adds the ability to configure the digest resolution timeout in deployment.yaml and, now that it's configurable, uses the opportunity to make the timeout much more aggressive (60s->10s).

Fixes #9296.

Release Note

- Lowers the default digest resolution timeout to 10 seconds.
- Allows changing the digest resolution timeout.

/assign @markusthoemmes @mattmoor

adds the ability to configure the timeout and, now that it's
configurable, makes the timeout much more aggressive (60s->2s).
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/API API objects and controllers labels Sep 17, 2020
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@julz: 0 warnings.

In response to this:

adds the ability to configure the digest resolution timeout in deployment.yaml and, now that it's configurable, uses the opportunity to make the timeout much more aggressive (60s->2s).

Fixes #9296.

Release Note

- Lowers the default digest resolution timeout to 2 seconds.
- Allows changing the digest resolution timeout.

/assign @markusthoemmes @mattmoor

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 17, 2020
@@ -44,6 +44,10 @@ data:
# List of repositories for which tag to digest resolving should be skipped
registriesSkippingTagResolving: "kind.local,ko.local,dev.local"

# digestResolutionTimeout is the maximum time allowed for an image's
# digests to be resolved.
digestResolutionTimeout: "2s"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any data backing this up? I.e. do we have historical data or something showing how long a digest usually takes?

Copy link
Member Author

@julz julz Sep 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, that's why I didn't want to lower it too much without making it configurable (hard to know with total certainty what's a safe value in all environments), but I think 2 seconds is still fairly generous -- it's only a metadata request. Very happy to bump it a bit higher though if we're concerned.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the critical thing here is if the default is bad people can trivially bump it back up (but 60 seconds seems way way too high to me as a default, even with plenty of resolver threads)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slack negotiation landed on 10s :). updated

@mattmoor
Copy link
Member

/lgtm

Not sure if @markusthoemmes had anything further?

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2020
Copy link
Contributor

@markusthoemmes markusthoemmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

It's a me!

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz, markusthoemmes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 17, 2020
@knative-prow-robot knative-prow-robot merged commit 2c1d486 into knative:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image Digest Timeout should be configurable
5 participants