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

P&F: enable mutating work estimator #106085

Merged
merged 1 commit into from Jan 5, 2022

Conversation

wojtek-t
Copy link
Member

@wojtek-t wojtek-t commented Nov 2, 2021

NONE

/sig api-machinery

@wojtek-t wojtek-t self-assigned this Nov 2, 2021
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Nov 2, 2021
@wojtek-t
Copy link
Member Author

wojtek-t commented Nov 2, 2021

/test pull-kubernetes-kubemark-e2e-gce-big
/test pull-kubernetes-kubemark-e2e-gce-scale

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 2, 2021
@fedebongio
Copy link
Contributor

/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 needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 2, 2021
@wojtek-t wojtek-t force-pushed the watch_support_9 branch 2 times, most recently from acf2f16 to d3d23ce Compare November 3, 2021 09:30
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 3, 2021
@wojtek-t
Copy link
Member Author

wojtek-t commented Nov 3, 2021

/test pull-kubernetes-kubemark-e2e-gce-big
/test pull-kubernetes-kubemark-e2e-gce-scale

@wojtek-t
Copy link
Member Author

wojtek-t commented Nov 3, 2021

/test pull-kubernetes-kubemark-e2e-gce-big
/test pull-kubernetes-kubemark-e2e-gce-scale

@wojtek-t
Copy link
Member Author

wojtek-t commented Nov 4, 2021

/test pull-kubernetes-kubemark-e2e-gce-big
/test pull-kubernetes-kubemark-e2e-gce-scale

@wojtek-t
Copy link
Member Author

wojtek-t commented Nov 4, 2021

/test pull-kubernetes-kubemark-e2e-gce-scale

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 30, 2021
@wojtek-t
Copy link
Member Author

/test pull-kubernetes-kubemark-e2e-gce-scale

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 10, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wojtek-t

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 10, 2021
@wojtek-t
Copy link
Member Author

/test pull-kubernetes-kubemark-e2e-gce-scale

@MikeSpreitzer
Copy link
Member

So, if I understand correctly, this is now intended to be reviewed and merged. The title of this PR should be updated to remove the outdated remarks to the contrary.

@wojtek-t wojtek-t changed the title [WIP][DO NOT REVIEW] P&F: enable mutating work estimator P&F: enable mutating work estimator Dec 11, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 11, 2021
@k8s-triage-robot
Copy link

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

@MikeSpreitzer
Copy link
Member

MikeSpreitzer commented Dec 13, 2021

I did some looking around in https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/106085/pull-kubernetes-kubemark-e2e-gce-scale/1469204072497156096 . That tested the merge of https://github.com/kubernetes/kubernetes/tree/cc6f12583f2b611e9469a6b2e0247f028aae246b (master) and https://github.com/wojtek-t/kubernetes/tree/8f5ece0548b59b1f8706f79af814d9f7700acb5c (the PR).

I went looking for apiserver SLO violations, but mistakenly averaged over 1 minute instead of 5. The table columns are mean and max.
Screen Shot 2021-12-12 at 10 33 13 PM

Screen Shot 2021-12-12 at 10 36 19 PM

@MikeSpreitzer
Copy link
Member

MikeSpreitzer commented Dec 13, 2021

Here are the concurrency limits.

time series value
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="catch-all", service="master"} 14
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="global-default", service="master"} 53
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="leader-election", service="master"} 27
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="node-high", service="master"} 105
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="system", service="master"} 79
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="workload-high", service="master"} 105
apiserver_flowcontrol_request_concurrency_limit{endpoint="apiserver", instance="10.40.3.217:443", job="master", namespace="monitoring", priority_level="workload-low", service="master"} 262

@MikeSpreitzer
Copy link
Member

Only one priority level came close to using all its concurrency. That is workload-high.

Screen Shot 2021-12-13 at 12 38 08 AM

Screen Shot 2021-12-13 at 12 36 01 AM

Screen Shot 2021-12-13 at 12 43 24 AM

@MikeSpreitzer
Copy link
Member

The kube-apiserver had the highest CPU utilization, peaking around 44 CPUs.

Screen Shot 2021-12-13 at 1 17 03 AM

@MikeSpreitzer
Copy link
Member

Only one flow schema had high watch counts, kube-system-service-accounts (priority level workload-high).

Screen Shot 2021-12-13 at 1 26 49 AM

Screen Shot 2021-12-13 at 1 25 03 AM

@MikeSpreitzer
Copy link
Member

Here's something odd: one sort of WATCH took less than a minute! It was resource=pods, scope=namespace.

Screen Shot 2021-12-13 at 2 34 18 PM

@MikeSpreitzer
Copy link
Member

MikeSpreitzer commented Dec 13, 2021

More regarding apiserver SLO. Looks OK.

Screen Shot 2021-12-13 at 2 43 26 PM

Screen Shot 2021-12-13 at 2 44 48 PM

Screen Shot 2021-12-13 at 2 46 04 PM

@dims
Copy link
Member

dims commented Jan 4, 2022

@wojtek-t is this ready?

@MikeSpreitzer
Copy link
Member

MikeSpreitzer commented Jan 5, 2022

I myself would like to see this vetted in the context of #106725 first. Sadly, we do not yet have consensus on that PR.

@wojtek-t
Copy link
Member Author

wojtek-t commented Jan 5, 2022

@MikeSpreitzer

Here's something odd: one sort of WATCH took less than a minute! It was resource=pods, scope=namespace.

This is expected - those are coming from test and we just set them up to wait for certain deployments to stabilize (we create them when the deployment is changed). This is expected it takes less than a minute a lot of times.

I myself would like to see this vetted in the context of #106725 first. Sadly, we do not yet have consensus on that PR.

That PR won't affect results of this PR at this point. The reason some version of it was needed initially was that kubemark was still using endpoints instead of endpointslices so we have thousands of watches on endpoints. After #106740, this is no longer true, so that PR won't really change results for our tests with this PR.
This is ready for stamping.

@MikeSpreitzer
Copy link
Member

/LGTM

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 5, 2022
@k8s-ci-robot k8s-ci-robot merged commit f2576ef into kubernetes:master Jan 5, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.24 milestone Jan 5, 2022
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. area/apiserver cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants