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

BUG 1875041: UPSTREAM: 94134: Make similar buckets for api and etcd request duration histogram #331

Merged

Conversation

tkashem
Copy link

@tkashem tkashem commented Sep 2, 2020

What type of PR is this?
/kind bug

What this PR does / why we need it:
etcd_request_duration_seconds uses the default buckets provided by prometheus client library.
DefBuckets = []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10}
The maximum bucket size is 10s. On the other hand, apiserver_request_duration_seconds uses more fine grained bucket sizes and the maximum bucket size is 60s

image

The left panel shows latency for Deployment-DELETE api (metric=apiserver_request_duration_seconds), this is taking about 40s to complete. On the other hand, etcd latency (metric=etcd_request_duration_seconds) for the same object apps.Deployment-delete is capped at 10s. Now the difference in latency is hard to account for. It cloud be latency from ectd but we can't answer this question by looking at the metrics.

If the etcd metric has similar bucket sizes, we could account for the difference in latency.

This PR makes the bucket sizes for both metrics similar. Also, no existing bucket for etcd_request_duration_seconds was dropped.

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

NONE

…on histogram

Make similar buckets for the apiserver_request_duration_seconds and
the etcd_request_duration_seconds histogram so that the result is
more comparable side by side.

etcd_request_duration_seconds uses the default buckets provided by
prometheus client library:
DefBuckets = []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10}

apiserver_request_duration_seconds on the other hand uses more fine
grained buckets, and the maximum bucket size is 60s. Both histograms
should use similar bucket sizes so they are more comparable side by side.
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 2, 2020
@tkashem tkashem changed the title UPSTREAM: 94134: Make similar buckets for api and etcd request duration histogram BUG 1875041: UPSTREAM: 94134: Make similar buckets for api and etcd request duration histogram Sep 2, 2020
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-low Referenced Bugzilla bug's severity is low 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 Sep 2, 2020
@openshift-ci-robot
Copy link

@tkashem: This pull request references Bugzilla bug 1875041, 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.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

BUG 1875041: UPSTREAM: 94134: Make similar buckets for api and etcd request duration histogram

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.

@tkashem
Copy link
Author

tkashem commented Sep 2, 2020

/retest

1 similar comment
@tkashem
Copy link
Author

tkashem commented Sep 3, 2020

/retest

@sttts
Copy link

sttts commented Sep 3, 2020

/retest
/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sttts, tkashem

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 3, 2020
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 068702d into openshift:master Sep 4, 2020
@openshift-ci-robot
Copy link

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

Bugzilla bug 1875041 has been moved to the MODIFIED state.

In response to this:

BUG 1875041: UPSTREAM: 94134: Make similar buckets for api and etcd request duration histogram

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-low Referenced Bugzilla bug's severity is low 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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants