Description
In an internal test cluster running 23.1.2 with 48 nodes we see that allocator logging is using 4% of CPU (32vCPU).
The CPU usage is from here:
cockroach/pkg/kv/kvserver/allocator/storepool/store_pool.go
Lines 1421 to 1427 in fdf04ff
When grabbing another profile the CPU time disappears. The suspect part is the number of string operations - which eat the majority of CPU shown above.
It appears possible redact printing status
is eating most of the CPU, however I'm not certain. Also these log statements are at v=3
, meaning that tracing must have been enabled consistently - which I suppose makes sense given:
cockroach/pkg/kv/kvserver/replicate_queue.go
Lines 721 to 723 in fdf04ff
Jira issue: CRDB-28774