Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Jul 28, 2022

In some clusters, these PromQL queries can hang for hours, possibly forever. I think we have a 30s default KeepAlive timeout, but apparently there's enough socket traffic to keep from tripping that. This adds a 5m cap to the PromQL calls, although I'm not particularly attached to that particular number. We can always raise it if we start seeing timeouts in Insights for queries where taking that long seems reasonable.

In some clusters, these PromQL queries can hang for hours, possibly
forever [1].  I think we have a 30s default KeepAlive timeout [2], but
apparently there's enough socket traffic to keep from tripping that.
This adds a 5m cap to the PromQL calls, although I'm not particularly
attached to that particular number.  We can always raise it if we
start seeing timeouts in Insights for queries where taking that long
seems reasonable.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=2109374#c12
[2]: https://pkg.go.dev/github.com/prometheus/client_golang/api#pkg-variables
@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jul 28, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 28, 2022

@wking: This pull request references Bugzilla bug 2109374, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @shellyyang1989

Details

In response to this:

Bug 2109374: pkg/clusterconditions/promql: Cap PromQL queries at 5 minutes

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.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2022
@wking
Copy link
Member Author

wking commented Jul 28, 2022

/retest

1 similar comment
@wking
Copy link
Member Author

wking commented Jul 28, 2022

/retest

@jottofar
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 28, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 28, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jottofar, wking

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

The pull request process is described here

Details 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

@jottofar
Copy link
Contributor

Hitting same old TestCVO_UpgradeFailedPayloadLoadWithCapsChanges unit test failure

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 2 against base HEAD 10a49a4 and 8 for PR HEAD eb44025 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 29, 2022

@wking: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit d6bb4dd into openshift:master Jul 29, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 29, 2022

@wking: All pull requests linked via external trackers have merged:

Bugzilla bug 2109374 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2109374: pkg/clusterconditions/promql: Cap PromQL queries at 5 minutes

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.

@wking wking deleted the cap-promql-query-time branch July 29, 2022 04:57
@wking
Copy link
Member Author

wking commented Aug 4, 2022

Verified via regression testing.

/cherrypick release-4.11

@openshift-cherrypick-robot

@wking: new pull request created: #815

Details

In response to this:

Verified via regression testing.

/cherrypick release-4.11

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.

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. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants