-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix default watch cache size to be 1000 instead of upstream's 100 #14052
Fix default watch cache size to be 1000 instead of upstream's 100 #14052
Conversation
42b2746
to
9282202
Compare
Is there an UPSTREAM for this? |
5c9996b
to
b717a66
Compare
@ncdc will create that now. |
01d7ed5
to
0567c0d
Compare
[test] |
0567c0d
to
b8427a6
Compare
Doesn't upstream do crazy magic to determine cache size kubernetes/kubernetes#40493? |
@enj it does. But we don't call that code: https://github.com/kubernetes/kubernetes/blob/55042b0ba9d9452366c2091a73d0bc4d7c50bf09/pkg/registry/cachesize/cachesize.go#L74. This PR is about the default cache size for those resources not listed there in that function. We had a size of 1000, kube uses 100. |
capacity := requestedSize | ||
if capacity == UseConfiguredCacheSize { | ||
capacity = configuredCacheSize | ||
// use the origin default cache size, not the one in registry.StorageWithCacher |
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 prefer the capacity
variable, since after line 130 here, it's no longer requestedSize
. It's "the right size".
nit on variable name, then lgtm. Approving bug fix. |
b8427a6
to
a59a577
Compare
Addressed comment. |
[merge] |
4d530e4
to
ff5e280
Compare
[merge] |
4fdf8a4
to
9045da0
Compare
Flake #14122 |
re[test] |
93f0d45
to
f376d04
Compare
f376d04
to
68f9b97
Compare
Flake #11561 |
re[test] |
Is this still good to go - does it just need a merge retag? |
re[merge] |
It has a reproducible StatefulSet e2e flake. Checking in #14280 whether it's actually a regression here or just shows up because we fixed another issue before. |
[test] |
…che sizes Leave the one disabled that depends on host volumes to work.
68f9b97
to
d0797da
Compare
[test] |
Evaluated for origin merge up to d0797da |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/759/) (Base Commit: 48e5e40) (Image: devenv-rhel7_6255) |
Evaluated for origin test up to d0797da |
continuous-integration/openshift-jenkins/test Running (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1643/) (Base Commit: 48e5e40) |
Fixes #13942