Skip to content

Commit

Permalink
.bazelrc: Limit CPU available in CI
Browse files Browse the repository at this point in the history
In order to limit CPU usage peaks in our CI infrastructure, we limit the
amount of available CPUs per Bazel process to ~10.
This is used to ensure that most jobs are able to finish in time, while
we limit the amount of usable CPU resources to achieve good runtime even
with many parallel jobs running at the same time.

References CMK-20447

Change-Id: I8d59f8419d6a82911bbdc649d2578a33133660d2
  • Loading branch information
okin authored and JonasScharpf committed Jan 10, 2025
1 parent 6d07e68 commit fb20d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ common:ci --show_progress_rate_limit=0
common:ci --show_timestamps
common:ci --memory_profile=bazel-memory.profile
common:ci --extra_toolchains="//bazel/toolchains/cc:ci"
common:ci --local_resources=cpu=HOST_CPUS
common:ci --local_resources=cpu=HOST_CPUS*.21
common:ci --local_resources=memory=HOST_RAM*.67
# the later flags will override the previous flags
# upload artifacts only from CI, CMK-18656
Expand Down

0 comments on commit fb20d01

Please sign in to comment.