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

Enable Kubelet profiling #6964

Closed
wants to merge 1 commit into from
Closed

Conversation

guenter
Copy link
Contributor

@guenter guenter commented Apr 17, 2015

This PR adds a new command line flag to kubelet that enables /debug/pprof/, similar to what has already been added to apiserver and controller-manager.

xref d2iq-archive/kubernetes-mesos#155

cc @bgrant0607 @davidopp @alex-mohr

@bgrant0607
Copy link
Member

cc @dchen1107 @vmarmol

@roberthbailey
Copy link
Contributor

Also see #6952 @mikedanese

@mikedanese
Copy link
Member

I would prefer to have this pprof handler serving on http like the others do so I could run:

ssh kube-node-1 -L10248:localhost:10248
go tool pprof http://localhost:10248/debug/pprof/profile

I was not able to get go tool pprof to work with https.

@@ -80,7 +82,7 @@ func ListenAndServeKubeletServer(host HostInterface, address net.IP, port uint,
// ListenAndServeKubeletReadOnlyServer initializes a server to respond to HTTP network requests on the Kubelet.
func ListenAndServeKubeletReadOnlyServer(host HostInterface, address net.IP, port uint) {
glog.V(1).Infof("Starting to listen read-only on %s:%d", address, port)
s := &Server{host, http.NewServeMux()}
s := &Server{host, http.NewServeMux(), true}
Copy link
Member

Choose a reason for hiding this comment

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

Why does the Kubelet ReadOnly Server set profiling to always on?

@roberthbailey
Copy link
Contributor

I merged #6952 this morning, adding profiling to the kubelet's healthz port. I don't think that we should add it to the RO port, since we are working to remove the RO port.

@guenter
Copy link
Contributor Author

guenter commented Apr 18, 2015

Closing in favor of #6952

@guenter guenter closed this Apr 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants