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 --profiling flag to kubelet #84397

Conversation

xiaoanyunfei
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes ##84165

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

add kubelet --profiling flag, separate`/debug/pprof/` from debugging handlers

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


/sig node

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/kubelet labels Oct 26, 2019
@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch 2 times, most recently from 7c7b53d to a6969d4 Compare October 26, 2019 15:13
@k8s-ci-robot k8s-ci-robot added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 26, 2019
@fejta-bot
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.

@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch 2 times, most recently from 5a8b2aa to b8c1e45 Compare October 27, 2019 08:33
@xiaoanyunfei
Copy link
Contributor Author

/assign @erictune @Random-Liu

cmd/kubelet/app/options/options.go Outdated Show resolved Hide resolved
pkg/kubelet/server/server.go Outdated Show resolved Hide resolved
@dims
Copy link
Member

dims commented Nov 16, 2019

/uncc

@k8s-ci-robot k8s-ci-robot removed the request for review from dims November 16, 2019 16:27
@SaranBalaji90
Copy link
Contributor

@xiaoanyunfei just curious, if you happen to follow up on this with sig/node?

@xiaoanyunfei
Copy link
Contributor Author

@xiaoanyunfei just curious, if you happen to follow up on this with sig/node?

en, I just browse the issue with label sig/node

@SaranBalaji90
Copy link
Contributor

SaranBalaji90 commented Jan 21, 2020

We did discuss about this PR as part of our sig-node meeting on Jan 21st. I confirmed from the maintainers that we don't need command line argument for this change. I'm not sure about moving this out similar to what we decided for disabling /logs endpoint.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Apr 20, 2020
@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch from 6b421c0 to 299b648 Compare May 13, 2020 11:36
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: xiaoanyunfei
To complete the pull request process, please assign derekwaynecarr, erictune
You can assign the PR to them by writing /assign @derekwaynecarr @erictune in a comment when ready.

The full list of commands accepted by this bot can be found 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 needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 11, 2020
@SaranBalaji90
Copy link
Contributor

SaranBalaji90 commented Jul 6, 2020

@xiaoanyunfei you might want to address the following two comments

  1. Remove cmd line flag as this has been deprecated.
  2. Set the default value to true so that the change is backward compatible.

@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch from 299b648 to c5dd24b Compare July 8, 2020 13:32
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 8, 2020
@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch 2 times, most recently from a15536e to b957f7f Compare July 13, 2020 12:15
if enableContentionProfiling {
goruntime.SetBlockProfileRate(1)
if enableProfiling {
server.InstallProfilingHandlers()
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Would be nice to say "profiling is disabled" when enableProfiling is false and debuggingHandler is enabled. Can you also add a unit test for this change.

@xiaoanyunfei xiaoanyunfei force-pushed the feature/kubelet-profiling-flag branch 2 times, most recently from 11d4716 to 8441741 Compare August 18, 2020 14:03
@k8s-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-device-plugin-gpu b957f7f9a6abad2a899e234b70c8601e73630ab4 link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-gce-ubuntu-containerd cd989df link /test pull-kubernetes-e2e-gce-ubuntu-containerd
pull-kubernetes-e2e-kind cd989df link /test pull-kubernetes-e2e-kind

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 18, 2020
@k8s-ci-robot
Copy link
Contributor

@xiaoanyunfei: PR needs rebase.

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.

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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.

@SaranBalaji90
Copy link
Contributor

@xiaoanyunfei I will be happy to drive this if you're not working on it currently.

@SaranBalaji90
Copy link
Contributor

@xiaoanyunfei I created PR #98458 to address the issue. if you prefer we can continue with this PR as well. Thank you!

@xiaoanyunfei
Copy link
Contributor Author

@xiaoanyunfei I created PR #98458 to address the issue. if you prefer we can continue with this PR as well. Thank you!

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubelet 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 lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/node Categorizes an issue or PR as relevant to SIG Node. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants