kvserver: annotate Replica.Send with pprof labels#86130
kvserver: annotate Replica.Send with pprof labels#86130craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
e45784b to
db3e7ea
Compare
tbg
left a comment
There was a problem hiding this comment.
Basically looks good! I think we should avoid pprof.Do here but functionally this will do it. Mind trying it out, too, and posting results for eye candy?
roachprod create local -n 3
roachprod put local ./cockroach
roachprod start local
./cockroach workload init kv --splits 500
./cockroach workload run kv --sequential --read-percent 95
should show up as a nice hotspot on one range in the profile.
d55c0f6 to
77b7193
Compare
|
|
PTAL |
77b7193 to
d6db017
Compare
This commit adds pprof labels to Send methods, as a proper replacement of the no longer working (since Go 1.17) unnamed parameters hack. Adding labels is conditional to the CPU profile cluster setting, to avoid the profiling cost and extra allocations in pprof.Do context construction during normal operation. Release note: None
d6db017 to
9869df0
Compare
|
bors r=tbg |
|
Build succeeded: |
|
blathers backport 22.1 |
|
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 9869df0 to blathers/backport-release-22.1-86130: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 22.1 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
|
It was worth a try. @erikgrinaker think we should backport this? If so @pavelkalinnikov you can use the instructions here to automate the boring parts: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/900005932/Backporting+a+change+to+a+release+branch Since there's a conflict, you'll need to resolve the conflict, then invoke backport again as |
This commit adds pprof labels to Send methods, as a proper replacement of the
no longer working (since Go 1.17) unnamed parameters hack. Adding labels is
conditional to the CPU profile cluster setting, to avoid the profiling cost and
extra allocations in pprof.Do context construction during normal operation.
Fixes #85948
Release justification: Profiling labels help investigating customer issues
Release note: None