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

WIP: Reduce tolerance for etcd leader elections #25430

Closed

Conversation

ironcladlou
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 20, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou

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 Aug 20, 2020
defer g.GinkgoRecover()
oc := exutil.NewCLI("etcd-leader-change").AsAdmin()
g.It("leader changes are not excessive", func() {
prometheus, err := client.NewE2EPrometheusRouterClient(oc)
o.Expect(err).ToNot(o.HaveOccurred())
g.By("Examining the rate of increase in the number of etcd leadership changes for last five minutes")
result, _, err := prometheus.Query(context.Background(), "increase((max by (job) (etcd_server_leader_changes_seen_total) or 0*absent(etcd_server_leader_changes_seen_total))[15m:1m])", time.Now())
result, _, err := prometheus.Query(context.Background(), "max by (job) (etcd_server_leader_changes_seen_total)", time.Now())
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand the by (job) bit. @sanchezl , can you explain why you added that in a8c76b2 (#24291).

Copy link
Member

Choose a reason for hiding this comment

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

Ah, sounds like the by (job) suggestion was originally from @smarterclayton. I'm still not clear on if/why it's needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it because each instance keeps its own accounting here and they often diverge? Thus we want the max as reported by all instances. cc @hexfusion

@ironcladlou
Copy link
Contributor Author

/test e2e-azure

@ironcladlou
Copy link
Contributor Author

/retest

@ironcladlou
Copy link
Contributor Author

/retest
/test e2e-azure

@ironcladlou
Copy link
Contributor Author

/test all

@openshift-ci-robot
Copy link

@ironcladlou: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/verify 3098cac link /test verify
ci/prow/e2e-azure 3098cac link /test e2e-azure
ci/prow/e2e-gcp-upgrade 3098cac link /test e2e-gcp-upgrade
ci/prow/e2e-aws-fips 3098cac link /test e2e-aws-fips
ci/prow/e2e-cmd 3098cac link /test e2e-cmd
ci/prow/e2e-gcp 3098cac link /test e2e-gcp

Full PR test history. Your PR dashboard.

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.

@ironcladlou
Copy link
Contributor Author

Replacing this with #25454

/close

@openshift-ci-robot
Copy link

@ironcladlou: Closed this PR.

In response to this:

Replacing this with #25454

/close

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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants