Skip to main content
Version: Next (Private Preview)

Graceful configuration reload

:::caution Next documentation

Diff-classified connection-pool reload was added after the 0.2.0 Private Preview. The 0.2.0 data plane does not provide the reload behavior described below.

:::

Not every connection-pool configuration change requires the same disruption. The runtime classifies a diff before applying it so safe changes can preserve live connections and structural changes can fail over deliberately.

Reload classes

ClassExpected behavior
No-opEffective configuration did not change.
DynamicUpdate runtime policy in place without touching established sockets.
Drain and reconcileClose or replace idle capacity while allowing active work to complete.
Recreate requiredRebuild the affected runtime graph because the change cannot be applied safely in place.

Unknown fields or an unrecognized diff must take the conservative recreate-required path.

Plan the change

  1. Review the configuration diff and predicted reload class.
  2. Check current client, server, idle, and in-flight connection counts.
  3. Confirm upstream connection capacity and retry behavior.
  4. Publish through the supported Manager workflow.
  5. Observe reload-class counters, idle drain activity, errors, and connection latency.

Ticker or maintenance-cadence changes can be dynamic when the installed release classifies them that way. Pool mode, authentication, endpoint, or other structural changes can require recreation.

Drain behavior

Drain applies to idle sockets first. It must not be treated as proof that all applications are interruption-free: clients can hold sessions, transactions, cursors, or long-running operations that affect termination timing.

Coordinate Kubernetes termination grace, readiness withdrawal, application retry, and MongoDB timeout settings.

Rollback

If errors or latency increase:

  1. Stop expanding the rollout.
  2. Restore the previous approved configuration revision.
  3. Confirm the resulting reload class.
  4. Verify client and upstream connection recovery.
  5. Preserve the diff and relevant metrics for investigation.

The exact field classification is release-specific. Check the installed bundle rather than assuming a newer or older release applies the same reload behavior.

Search Nexo documentation

Type to search titles, headings, and page content.