Skip to content

all: Use automaxprocs to tune GOMAXPROCS on k8s

Warren Gifford requested to merge gomaxprocs into master

Created by: keegancsmith

The go runtime by default uses the number of cores to set GOMAXPROCS. GOMAXPROCS is then used in many places to control concurrency / decide how many threads to start. However, on docker environments one often has climits affecting it. automaxprocs will read in the climit to set a more accurate GOMAXPROCS.

Fixes https://github.com/sourcegraph/sourcegraph/issues/4867

Merge request reports

Loading