ci: set GOMAXPROCS (#6908)

* ci: add comment clarify rationale for setting GOMAXPROCS
This commit is contained in:
Mike Morris 2019-12-09 15:57:39 -05:00 committed by GitHub
parent 41e98e273c
commit 5a2a8ec6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ jobs:
environment:
<<: *ENVIRONMENT
GOTAGS: "" # No tags for OSS but there are for enterprise
# GOMAXPROCS defaults to number of cores on underlying hardware, set explicitly to avoid OOM issues https://support.circleci.com/hc/en-us/articles/360034684273-common-GoLang-memory-issues
GOMAXPROCS: 2 # medium (default) boxes are 2 vCPUs, 4GB RAM https://circleci.com/docs/2.0/configuration-reference/#docker-executor
steps:
- checkout
- restore_cache: # restore cache from earlier job