← Back to Pull requests

[CONTP-2299] Add jemalloc disable annotation #3723

Closed
unknown closed this pull request without merging on Nov 05, 2026 20:26 UTC
View on GitHub
unknown unknown commented on Nov 03, 2026 21:17 UTC
Author

What does this PR do?

Replace the jemalloc enablement annotation with agent.datadoghq.com/jemalloc-disable: "true" to opt out of the default jemalloc preload in Agent 7.87+ images.

metadata:
  annotations:
    agent.datadoghq.com/jemalloc-disable: "true"

  • Set only LD_PRELOAD=/opt/lib/nosys.so, preserving the syscall compatibility shim while removing jemalloc from the preload list. Stop injecting MALLOC_CONF.

  • Apply the override to all node Agent containers except DDOT (otel-agent), including single-container mode, and to Cluster Checks Runners.

  • Raise the minimum Agent version to 7.87, including prereleases. Preserve the Windows-profile and GKE Autopilot exclusions and explicit environment override precedence.

  • Remove the generated preload override when the annotation is removed or set to "false", restoring the image defaults.
  • Motivation

    Agent images will preload jemalloc by default starting with 7.87 (DataDog/datadog-agent#58918). The Operator needs an opt-out annotation so users can disable jemalloc without manually configuring each container's environment.

    Addresses CONTP-2299.

    Describe how you validated your changes

  • Passed focused jemalloc unit, pod-template, renderer, and reconciliation tests covering annotation values, the 7.87 version boundary, node Agent containers and DDOT exclusion, single-container mode, Cluster Checks Runners, provider exclusions, environment override precedence, and annotation removal from an existing DaemonSet.

  • make lint passed with 0 issues.

  • git diff --check passed.
  • Live-cluster QA was not run.

    [CONTP-2299]: https://datadoghq.atlassian.net/browse/CONTP-2299?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 234 lines (+175 / -59) across 2 files Reviewer: levan-m Review duration: 2828m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 234 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3723"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.7% · Safe to merge
    14.7%