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

UPSTREAM: <drop>: Double the global timeout if performing a global list #15505

Merged
merged 1 commit into from
Jul 28, 2017

Conversation

smarterclayton
Copy link
Contributor

In 3.6, users still on etcd may be seeing large list calls take in
excess of 1 minute (the hard limit). In 3.7, all users will be on etcd3
and protobuf and we expect times to drop by an order of magnitude.
Since our largest in the wild clusters are taking about 1 minute 3
seconds, double the global timeout limit for global lists only for 3.6,
and in 3.7 this will no longer be necessary.

@deads2k

@openshift-merge-robot openshift-merge-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 27, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: smarterclayton

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment


// when performing global calls, increase the timeout for very large clusters
timeout := globalTimeout
if requestInfo.IsResourceRequest && requestInfo && len(requestInfo.Namespace) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

intent is good, but this doesn't compile

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@smarterclayton
Copy link
Contributor Author

@liggitt

if requestInfo.IsResourceRequest && len(requestInfo.Namespace) == 0 {
timeout = timeout * 2
}

return time.After(globalTimeout), apierrors.NewServerTimeout(schema.GroupResource{Group: requestInfo.APIGroup, Resource: requestInfo.Resource}, requestInfo.Verb, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the local var here, right?

@bparees bparees removed their assignment Jul 28, 2017
In 3.6, users still on etcd may be seeing large list calls take in
excess of 1 minute (the hard limit). In 3.7, all users will be on etcd3
and protobuf and we expect times to drop by an order of magnitude.
Since our largest in the wild clusters are taking about 1 minute 3
seconds, double the global timeout limit for global lists only for 3.6,
and in 3.7 this will no longer be necessary.
@smarterclayton
Copy link
Contributor Author

journald log snip

/retest

@smarterclayton smarterclayton modified the milestone: 3.6.0 Jul 28, 2017
@smarterclayton
Copy link
Contributor Author

/retest
Flake in TestProjectRequest

@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: smarterclayton

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Jul 28, 2017
@smarterclayton smarterclayton merged commit 447c9ac into openshift:release-3.6 Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants