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

Avoid thundering herd of probes during failover. #231

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

mattmoor
Copy link
Contributor

This change guards the status prober with a simple readiness check as an
optimization for the case of failing over and globally resyncing resources.
When a fresh controller pod slurps through ~100 kingress for the first time
we will currently probe ALL of them. On a 10 Node cluster, with 1 public and
3 private hostnames, this works out to a lot of probes:

  100 * (1 * 10 + 3 * 10) = 4000

Factor in what we do with endpoint probing, and it adds roughly 2000 probes.

Currently, this is what the scale-100 test in serving is doing every 30s or so,
in addition to the standard work it is doing.

Fixes: #203

Possibly related to: #226

This change guards the status prober with a simple readiness check as an
optimization for the case of failing over and globally resyncing resources.
When a fresh controller pod slurps through ~100 kingress for the first time
we will currently probe ALL of them.  On a 10 Node cluster, with 1 public and
3 private hostnames, this works out to a lot of probes:

```
  100 * (1 * 10 + 3 * 10) = 4000
```

Factor in what we do with endpoint probing, and it adds roughly 2000 probes.

Currently, this is what the scale-100 test in serving is doing every 30s or so,
in addition to the standard work it is doing.

Fixes: knative-extensions#203

Possibly related to: knative-extensions#226
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 28, 2020
@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 28, 2020
@mattmoor
Copy link
Contributor Author

Ok, this clearly has bugs.

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-net-contour-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/contour/contour.go 91.0% 91.5% 0.5

@n3wscott
Copy link

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 28, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, n3wscott

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

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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid reprobing Ready kingress
6 participants