← Back to Pull requests

[CLOUDPREM-889] Align the DatadogBYOCCluster sizing and defaults with the CloudPrem Helm chart #3759

Closed
unknown closed this pull request without merging on Nov 13, 2026 09:24 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 16:09 UTC
Author

What does this PR do?

Aligns the DatadogBYOCCluster controller with the CloudPrem Helm chart: the node config sized from the component resources follows the chart sizing map (sizing-map.yaml), and the operator sets the defaults that the chart sets.

Node config sizing

  • Indexer WAL (ingest_api.max_queue_memory_usage): sized from the indexer CPU instead of 30% of its memory, as 0.8GiB × 3^log2(cores / 2). This is the chart's 0.8 / 2.4 / 7.2 / 21.6 GiB for 2 / 4 / 8 / 16 cores (the value triples each time the cores double). The cores are the CPU request, or the limit, rounded up to a whole core, as the chart rounds its indexer CPU limit. The budget is capped at 40% of the memory limit (the chart's largest ratio is 37%). max_queue_disk_usage stays at 2× the WAL memory.

  • Searcher caches: sized from the memory limit rounded down to a whole GiB, in decimal units, as the chart does: fast_field_cache = GiB × 0.40625G, split_footer_cache = GiB × 31.25M, partial_request_cache = GiB × 15.625M. Memory under 1 GiB keeps its fraction so the caches are not sized to zero.

  • max_num_concurrent_split_searches: ceil(GiB × 3.125) on the rounded-down GiB. This is the chart's former formula; its current hand-tuned values differ by at most 3 (xlarge 40 vs 38, 4xlarge 180 vs 179, 6xlarge 275 vs 272, 8xlarge 370 vs 369).
  • Defaults

  • QW_ENABLE_LOCALITY_AWARE_SCHEDULING=true on every Pomsky pod (chart 0.5.3).

  • QW_ENABLE_IN_MEMORY_INDEXING=true on indexers (chart 0.5.3) and QW_DISABLE_LOAD_ESTIMATION=true on searchers (chart 0.5.5).

  • QW_INDEXING_MAX_WRITE_THROUGHPUT on indexers at 12.5MiB per core, with the same cores as the WAL: the chart's 25 / 50 / 100 / 200 MiB for 2 / 4 / 8 / 16 cores (chart 0.5.3). It is not set without a CPU resource.

  • Metastore PostgreSQL connections default to min_connections: 10 and max_connections: 50 (chart 0.5.3).

  • The compactor termination grace period defaults to 300 seconds instead of 60, so QW_COMPACTOR_DECOMMISSION_TIMEOUT becomes 270s (chart 0.5.3).
  • The env of a component and nodeConfigOverrides still override these defaults. Existing indexer, searcher, metastore and compactor pods roll out to pick up the new environment and node config.

    Additional notes

    max_queue_disk_usage is still derived from the default WAL memory, not from an overridden max_queue_memory_usage. Overriding only the memory above the default disk value (e.g. max_queue_memory_usage: 6GiB with 4 cores, where the disk default is 4.8GiB) fails Pomsky's disk >= memory validation. The Helm chart has the same issue (it merges config over the sizing map), so this PR leaves it as is.

    Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies

  • PR has a milestone or the qa/skip-qa label

  • All commits are signed
  • ---
    Jira: CLOUDPREM-889 (Epic: CLOUDPREM-431 / Initiative: LOPS-253)

    [CLOUDPREM-889]: https://datadoghq.atlassian.net/browse/CLOUDPREM-889?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 399 lines (+299 / -100) across 4 files Reviewer: shuheiktgw Review duration: 3915m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 399 lines diff across 4 files
    0.66
    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.358
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #3759"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 66.4% (HIGH) · Higher = larger blast radius
    66.4%
    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: 26.2% · Safe to merge
    26.2%