-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Increase default value of cache TTL to 6 hours. #107141
Conversation
|
Hi @mk46. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/kind feature |
| @@ -439,13 +447,21 @@ func NewConfigFlags(usePersistentConfig bool) *ConfigFlags { | |||
| // given 25 groups (our groups + a few custom resources) with one-ish version each, discovery needs to make 50 requests | |||
| // double it just so we don't end up here again for a while. This config is only used for discovery. | |||
| discoveryBurst: 100, | |||
| CacheTTL: durationPtr(1 * time.Hour), | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion the default can even be a full day. CRDs don't change that often and if a GVK can't be found in the cache, the cache is rendered invalid and repopulated anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, let cache-ttl default to 1 hour and we also have a configuration option for the same. 1 day looks very long duration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. The default can be increased though IMO.
|
/ok-to-test |
|
/test pull-kubernetes-e2e-kind-ipv6 |
|
/assign @soltysh |
|
Hi @mk46 - please edit the top level comment to follow the initial pull request template. Specifically we need the release note block. /assign |
|
@mk46 when you get this updated please ping me on slack to get my immediate attention on this PR :) Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jonnylangefeld, mk46, soltysh 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 |
|
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
|
is this PR only for diskcache? or even for memCache? |
Increase default value of cache TTL to 6 hours.
Increase default value of cache TTL to 6 hours.
Increase default value of cache TTL to 6 hours.
Fixes #107130
Special notes for your reviewer:
Does this PR introduce a user-facing change?