Skip to content

Instantly share code, notes, and snippets.

@brennv
Last active May 9, 2016 17:24
Show Gist options
  • Save brennv/cae41091755b9de192a17967f2d335e7 to your computer and use it in GitHub Desktop.
Save brennv/cae41091755b9de192a17967f2d335e7 to your computer and use it in GitHub Desktop.
Inspecting OpenShift nodes

Inspecting nodes

pprof is an extension of gperftools, a high-performance multi-threaded malloc implementation

Prerequisites

  • Add OPENSHIFT_PROFILE=web to /etc/sysconfig/atomic-openshift-node, openshift-master or origin-master
  • Restart OpenShift

In the event of a hung pod

Before deleting the pod or killing any processes, ssh into the affected node and run:

curl -o output.txt http://localhost:6060/debug/pprof/goroutine?debug=2

With output.txt being the destination file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment