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

Add benchmarks & stress tests #366

Open
7 tasks
tallclair opened this issue Jun 23, 2022 · 8 comments
Open
7 tasks

Add benchmarks & stress tests #366

tallclair opened this issue Jun 23, 2022 · 8 comments
Assignees
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@tallclair
Copy link
Contributor

tallclair commented Jun 23, 2022

I think this project is currently lacking benchmarks and stress tests. These tests can be useful for identifying major regressions and issues. Some ideas of tests I'd like to see:

  • Single high-throughput connection
    • Agent → Proxy server
    • Agent ← Proxy server
    • Agent ⇆ Proxy server (bidirectional)
  • Multiple high-throughput connections
  • High proxied connection churn (normal behavior, e.g. multiple webhooks)
  • High churn of agent connections (simulating flaky network or agent restarts)

Each case above should collect metrics on CPU, memory, and # of goroutines. Metrics should be measured before, during & after the tests, with quantiles.

  • High-throughput cases should also benchmark throughput rates
  • Connection churn cases should also look at latency
@justinsb
Copy link

This is a great list. If I was adding one scenario, I would add the "unexpected close" scenario. I think this happens in the real world with a webhook if kube-apiserver closes the connection after a timeout. Also (in the other direction) if the webhook crashes I think that should also yield a close at an unexpected place in the message flow.

@tallclair
Copy link
Contributor Author

/assign

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 26, 2022
@tallclair
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 1, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 30, 2023
@tallclair
Copy link
Contributor Author

/remove-lifecycle stale
/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 9, 2023
@k8s-triage-robot
Copy link

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Feb 9, 2024
@tallclair
Copy link
Contributor Author

/triage accepted

We have much better test coverage, but I think we're still lacking the ability to detect a performance regression.

Some basic benchmarks were added in https://github.com/kubernetes-sigs/apiserver-network-proxy/blob/master/tests/benchmarks_test.go, but we're still missing benchmarks for concurrent requests & throughput, as well as the tooling to run these regularly to detect regressions.

@k8s-ci-robot k8s-ci-robot added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants