GoMaxProcs
What It Is
This diagnostic checks if the GOMAXPROCS environment variable is set appropriately on all agents.
Why It's Important
The Go runtime uses GOMAXPROCS
to manage the number of CPU cores utilized for concurrent execution. By default, it matches the number of available CPU cores. However, in environments where agents run alongside other processes or within containerized environments (e.g., Docker, Kubernetes), this default value might not align with resource constraints. Setting GOMAXPROCS
explicitly ensures agents make optimal use of available CPU resources while avoiding contention or underutilization.
How It's Computed
Agents are checked to confirm if GOMAXPROCS is set.
What Actions to Take
Set GOMAXPROCS to the number of available CPUs on each server.
Last updated
Was this helpful?