Profile Go micro-services in Kubernetes with pprof
One of Go's most life-saving features is its native profiling tool, pprof
. It enables you to instrument your code in order to discover problems related to performance, concurrency and memory usage.
I've read a few articles on how to set up the instrumentation, run the tool and analyze its results, but the examples usually work on your machine. Using it on code that is deployed on a Kubernetes cluster takes a few more steps, and this is how I did it.
Written by Rodrigo Dumont
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Kubernetes
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#