Skip to content

Commit

Permalink
Merge pull request #101366 from xmudrii/automated-cherry-pick-of-#968…
Browse files Browse the repository at this point in the history
…82-upstream-release-1.18

Automated cherry pick of #96882: Make parallel build memory threshold configurable
  • Loading branch information
k8s-ci-robot committed Apr 27, 2021
2 parents 3a7dfed + 28818d5 commit 54377e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hack/lib/golang.sh
Expand Up @@ -305,9 +305,10 @@ readonly KUBE_TEST_SERVER_BINARIES=("${KUBE_TEST_SERVER_TARGETS[@]##*/}")
readonly KUBE_TEST_SERVER_PLATFORMS=("${KUBE_SERVER_PLATFORMS[@]:+"${KUBE_SERVER_PLATFORMS[@]}"}")

# Gigabytes necessary for parallel platform builds.
# As of January 2018, RAM usage is exceeding 30G
# Setting to 40 to provide some headroom
readonly KUBE_PARALLEL_BUILD_MEMORY=40
# As of January 2018, RAM usage is exceeding 30G.
# This variable can be overwritten at your own risk.
# It's defaulting to 40G to provide some headroom
readonly KUBE_PARALLEL_BUILD_MEMORY=${KUBE_PARALLEL_BUILD_MEMORY:-40}

readonly KUBE_ALL_TARGETS=(
"${KUBE_SERVER_TARGETS[@]}"
Expand Down

0 comments on commit 54377e0

Please sign in to comment.