← Back to Pull requests

perf(platform-connectors): raise deployment connector datastore pool default to 30 #1998

Closed
unknown closed this pull request without merging on Oct 09, 2026 11:00 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 07:34 UTC
Author

Summary

Raise the default platformConnector.deployment.datastore.maxPoolSize (DATASTORE_MAX_CONNECTIONS) from 10 to 30.

Each write holds a pooled connection until a majority of the replica set acknowledges it, so the deployment connector's ingest ceiling is replicas × pool ÷ write time. At 100,000 nodes and 0.01 events/node/s (~1,000 events/s), pool 10 leaves about 1.5x headroom before MongoDB falls behind, and pool 30 about 3.5x (3,464 events/s measured with production-shaped events). Details in the scale test report (#1789).

Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Improvements
    Increased the platform connector’s datastore connection pool capacity from 10 to 30. This allows more simultaneous datastore connections and may help the connector handle higher levels of concurrent activity. The change affects connection capacity; no other user-facing behavior changes are included in this release.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 213 lines (+159 / -54) across 2 files Reviewer: KaivalyaMDabhadkar Review duration: 205m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 213 lines diff across 2 files
    0.60
    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.321
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #1998"
    general weight: 0.35
    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: 59.7% (MEDIUM) · Higher = larger blast radius
    59.7%
    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: 23.6% · Safe to merge
    23.6%