Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitlab/templates/build-base-venvs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ build_base_venvs:
DD_PROFILING_NATIVE_TESTS: '1'
DD_USE_SCCACHE: '1'
DD_PROFILING_MEMALLOC_ASSERT_ON_REENTRY: '1'
# Pin resources and disable the VPA. This job compiles every native
# extension in parallel (CMAKE_BUILD_PARALLEL_LEVEL=12, set above) whenever
# the ext_cache is cold (e.g. a newly added Python version), which peaks
# well above the ~5Gi the VPA otherwise tunes it down to and gets OOMKilled.
# Matches the resource requests used by the native package build jobs.
Comment on lines +14 to +18

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are those requests defined somewhere within dd-trace-py? If so, could you add a comment there to make sure we also update this file when they're updated?

KUBERNETES_CPU_REQUEST: '6'
KUBERNETES_MEMORY_REQUEST: '10Gi'
KUBERNETES_MEMORY_LIMIT: '10Gi'
DD_DISABLE_VPA: 'true'
# Disable link time optimization settings to improve build times, the impact will be larger binary sizes
CARGO_PROFILE_RELEASE_LTO: 'off'
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: '16'
Expand Down
Loading