> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.15/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.15/releases/3.15.0.md).

# Session Management Controller 3.15.0

**Release date:** 2026-06-10

This release lets Session Management Controller (SMC) hold the gateway near its real capacity under overload instead of relying on static admission limits that operators must hand-tune per deployment. A new adaptive load control subsystem decides which GTP requests to shed, prioritizes session teardown over new sessions, and tunes its concurrency limit to observed processing latency — so a predictable fraction of the lowest-priority traffic gets rejected under overload while the rest experiences stable latency. The release also closes several smaller gaps: VRF-isolated AAA traffic for Diameter and RADIUS, session teardown on Rf charging-data-function failures (with bounded memory during outages), GTP-proxy support for dedicated bearers and secondary PDP contexts, and a `configOverlay` value for partial overrides of the template-generated erGW configuration.

In short, the changes in this release are:

- Add `configOverlay` value for partial override of the template-generated erGW configuration
- Add adaptive load control with priority-queue admission, PID-based shedding, and a Vegas auto-tuner for concurrency
- Bundle two new Grafana dashboards (`ergw-load-control` and `api-latency`) in the SMC Support chart
- Bundle six additional Grafana dashboards (per-Diameter-API: `aaa-gx`, `aaa-ro`, `aaa-rf`, `aaa-nasreq`; Erlang VM: `beam`, `beam-erts-memory-allocators`), all disabled by default
- Add a Resource usage section to the SMC Overview dashboard with container CPU and memory panels and Erlang VM headroom panels
- Add dedicated bearer and secondary PDP context support for GTP proxy handlers
- Add network namespace (`netns`) and device binding (`netdev`) for Diameter and RADIUS
- Expose the `ergw_aaa_rf_queued_containers` gauge for monitoring buffered Rf accounting containers during a CDF outage
- Fix Rf offline charging: CDF failures now cause session teardown
- Fix RADIUS request-identifier reuse that could stall or crash the client under a slow or unresponsive server
- Fix duplicate `nodelay` / `sctp_nodelay` socket option in SCTP Diameter transport
- Fix broken queries on the SMC Overview Grafana dashboard
- Configure the Prometheus collector list explicitly so erGW, AAA, Diameter, and process metrics are always exported
- Replace `prometheus_process_collector` with a pure-Erlang fork so transient `/proc` read failures no longer abort the BEAM under concurrent scrapes
- Modernize GitHub Actions workflows: SHA-pin all actions and upgrade CI runner to Ubuntu 24.04

There are no breaking changes between SMC 3.14.0 and SMC 3.15.0.

> [!CAUTION]
> Before upgrading to the newest version, follow the instructions provided in the [migration guide](#migration-guide).

## Features

### Add `configOverlay` for partial erGW configuration overrides

Previously, operators who needed to change one or two values in the template-generated erGW configuration had to supply the entire configuration through `config` or `configYaml`. This bypasses all template logic and requires maintaining a complete copy of the configuration.

This release adds the `configOverlay` Helm value. Set it to a YAML map. The chart deep-merges the overlay on top of the template-generated configuration using `mergeOverwrite`. Overlay keys replace the corresponding generated values, and the chart preserves all other keys. The overlay is silently ignored when `config` or `configYaml` is set. Note that list-valued fields such as `sockets` and `handlers` are fully replaced if they appear in the overlay.

Example — disable new session acceptance and change the HTTP API port without supplying the full configuration:

```yaml
configOverlay:
  node:
    accept_new: false
  http_api:
    port: 9090
```

For more information, read [erGW configuration](https://docs.cennso.com/components/smc/3.15/config/ergw-config.md).

### Adaptive load control

Previously, SMC relied entirely on static per-tier rate and counter limits supplied at startup time to protect itself from overload. Operators had to pick a threshold that was neither so low that capacity was wasted at moderate load, nor so high that it protected nothing at peak load. The right threshold depended on deployment shape and traffic mix and needed retuning whenever either changed.

This release introduces an adaptive admission subsystem. When enabled, SMC continuously measures its own capacity and adjusts the admission threshold and concurrency limit to match, so that a predictable fraction of the lowest-priority traffic is rejected under overload while the remainder experiences stable latency. The subsystem combines four mechanisms:

- A **priority model** that classifies each GTP request into one of four tiers (`delete` highest, then `other`, `data`, `create` lowest) and further partitions each tier into 128 cohorts. Under overload, `create` traffic is shed first; session teardown is always allowed through so resources can be freed.
- A **velocity-form PID controller** that continuously computes the fraction of traffic that must be rejected to keep the system at capacity. The controller ticks every 500 milliseconds and adapts without operator intervention.
- An **empirical percentile tracker** that maps the rejection fraction to a concrete priority threshold reflecting the actual priority distribution of recent traffic. This makes shedding consistent regardless of how skewed the traffic mix becomes.
- The **Vegas auto-tuner**, which monitors P90 processing latency and dynamically adjusts the maximum number of requests the gateway processes in parallel.

The feature is **opt-in**. The default admission path remains the rate-limit static `jobs`-based limits, so existing deployments see no behavioral change on upgrade. To opt in, set `loadControl.mode` to `adaptive` (full adaptive control) or `rate-limit-observe` (shadow mode — rate-limit admission with adaptive instrumentation for evaluation). A migration guide, full configuration reference, tuning guide, and troubleshooting signatures are in the [Adaptive load control](https://docs.cennso.com/components/smc/3.15/config/load-control.md) documentation.

### Grafana dashboards for load control and API latency

The SMC Support chart now bundles two additional dashboards, both disabled by default:

- `ergw-load-control` — visualizes the rejector, Vegas auto-tuner, queue depth, and shed rates. Recommended for any deployment running in `adaptive` or `rate-limit-observe` mode.
- `api-latency` — covers latency and rate for every API surface SMC talks to: inbound GTP-C, PFCP, and HTTP OAM; outbound GTP-C paths, PFCP, Diameter, and SBI. Each surface has percentiles, rate, and a heatmap panel.

Enable them under `dashboard.dashboards` in the support chart values. Existing deployments using the `smc-overview` dashboard see no change unless they explicitly enable the new ones.

### Additional per-Diameter-API and Erlang VM Grafana dashboards

The SMC Support chart now bundles six more dashboards, all disabled by default:

- `aaa-gx`, `aaa-ro`, `aaa-rf`, `aaa-nasreq` — per-Diameter-application dashboards covering session counts, request and answer rates, latency, result codes, capacity and flow control, peer connections, and per-peer comparison.
- `beam` — Erlang Virtual Machine core metrics: process counts, memory regions, garbage collection, IO, file descriptors, and native threads.
- `beam-erts-memory-allocators` — per-allocator memory usage for diagnosing fragmentation, pool churn, or allocator misconfiguration.

Enable any of them under `dashboard.dashboards` in the support chart values. None affect existing deployments unless explicitly enabled.

### Resource usage section in the SMC Overview dashboard

This release adds a **Resource usage** section to the [SMC Overview dashboard](https://docs.cennso.com/components/smc/3.15/observability/dashboard-smc-overview.md#resource-usage) that exposes the most relevant resource and capacity signals at a glance:

- Container CPU and memory versus the configured Kubernetes limits
- Live Erlang process count versus the BEAM process limit. Reaching the limit crashes the VM, so a persistent climb is a capacity warning.
- Per-scheduler run-queue length. Persistently high values correlate with rising request latency.
- A stacked Erlang VM memory breakdown by region (`processes`, `binary`, `ets`, `code`, `atom`). Useful for attributing growth between session state (`processes`, `ets`) and retained binary memory.

The section follows the same layout as the UPG Overview dashboard's **Resources usage** row, so operators familiar with UPG see a consistent view. It lets operators check pod CPU and memory headroom and Erlang VM process and scheduler capacity from the SMC Overview dashboard, without switching to the BEAM or ERTS deep-dive views or Kubernetes-level views. For per-region memory, garbage collection, and scheduler details, the [BEAM dashboard](https://docs.cennso.com/components/smc/3.15/observability/dashboard-beam.md) remains the deep-dive view.

### Dedicated bearer and secondary PDP context support in GTP proxy

Previously, the GTP proxy forwarded only default bearer sessions. The GTP proxy did not support dedicated bearer creation, deletion, or modification requests, and did not handle secondary PDP contexts in GTPv1 proxy mode.

This release adds full dedicated bearer support to the GTPv2 S5/S8 proxy (`pgw_s5s8_proxy`) and secondary PDP context support to the GTPv1 Gn/Gp proxy (`ggsn_gn_proxy`).

The GTPv2 proxy now handles:
- Create Bearer Request/Response — allocates a PFCP bearer pair per bearer context and commits the bearer under the SGW-assigned EBI
- Delete Bearer Request/Response — supports both PGW-initiated and SGW-initiated directions
- Modify Bearer Command and Bearer Resource Command — forwards to the PGW and rejects unknown-EBI requests with `context_not_found`

The GTPv1 proxy now handles:
- Secondary PDP context create and delete in both SGSN-initiated and GGSN-initiated directions
- Bearer validation by linked NSAPI before forwarding

### Network namespace and device binding for Diameter and RADIUS

Previously, Diameter and RADIUS traffic used the default network namespace and had no mechanism for socket-level VRF isolation. Operators who needed VRF separation for AAA traffic had no supported configuration path.

This release adds two new transport options:
- `netdev` — binds the socket to a specific network device (`SO_BINDTODEVICE`), enabling VRF-Lite isolation at the socket level
- `netns` — opens the socket in a specific Linux network namespace

For Diameter transports, set these options under `transportOpts`:

```yaml
aaa:
  rf:
    transportOpts:
      netdev: "vrf-aaa"
```

For RADIUS, set `aaa.radius.netdev` and `aaa.radius.netns` directly:

```yaml
aaa:
  radius:
    netdev: "vrf-aaa"
```

### Rf queued accounting containers metric

A new gauge `ergw_aaa_rf_queued_containers` reports the number of Rf accounting containers SMC has buffered while the Charging Data Function (CDF) is unreachable. Use the metric together with `aaa.rf.max_pending_data` to size the pending-data cap and to detect prolonged CDF outages before sessions are torn down.

## Fixes

### Fix Rf offline charging: CDF failures now cause session teardown

Previously, when the Charging Data Function (CDF) rejected or timed out an Rf accounting request, SMC silently ignored the failure. A rejected ACR-Initial did not prevent the GTP session from being established, and mid-session ACR failures accumulated charging data in memory without limit. During prolonged CDF outages this caused unbounded memory growth.

This release corrects the Rf failure handling:
- A rejected or timed-out ACR-Initial now aborts GTP session creation with cause `system_failure`
- Mid-session ACR failures with a non-success Result-Code trigger session teardown
- Result-Codes `UNABLE_TO_DELIVER` (3002) and `TOO_BUSY` (3004) allow the session to continue with charging data retained, subject to a configurable cap

Four new Helm values control transport failure behavior:
- `aaa.rf.answers` — list of named synthetic ACA responses injected on transport failure
- `aaa.rf.answer_if_down` — per-request-state action when the CDF is unreachable (`initial` for ACR-Start, `update` for ACR-Interim)
- `aaa.rf.answer_if_timeout` — per-request-state action on request timeout (same structure)
- `aaa.rf.max_pending_data` — cap on accumulated charging data count, bounding memory growth

For configuration examples and detailed semantics, see [CDF failure handling](https://docs.cennso.com/components/smc/3.15/config/aaa/charging/rf.md#cdf-failure-handling).

### Fix RADIUS request-identifier reuse under load

Previously, the RADIUS client could reuse a request ID while an earlier request using that ID was still pending. Under heavy load against a slow or unresponsive server, this caused two problems: requests hit unnecessary timeout-length delays, and duplicate requests were sent on the wire. In some cases, SMC dropped a valid reply or matched an accounting record to the wrong request. With a single-port setup, the client could also crash after roughly 256 requests to a single server.

This release adopts the dynamic per-server connection pool from erGW v3.15.1. The client now rotates its source port, so a reused identifier always lands on a fresh `(client IP, port)` pair that the server treats as a separate client. This makes reuse structurally safe. The pool also limits how many requests can be open at once. When that limit is reached, SMC rejects new requests instead of reusing an identifier that's still in use.

Three new Helm values tune the pool:
- `aaa.radius.noPorts` — active UDP sockets per RADIUS server in the request pool. Defaults to `aaa.radius.clientPorts` when unset (`100`).
- `aaa.radius.maxPortsPerServer` — limit on sockets per server, counting active and retiring sockets. Once a server reaches the limit, SMC rejects new requests as backpressure. The default value is `256` sockets.
- `aaa.radius.reqidReuseTimeout` — time (in milliseconds) defining how long a quarantined socket (and its source port) is kept aside before reuse. The default value is `30000` milliseconds.

The global `aaa.radius.clientPorts` value is deprecated. The new client no longer reads it, but it still seeds the default for `aaa.radius.noPorts`, so existing deployments keep their previous pool size. No operator action is required. For the migration steps, see the [migration guide](#migration-from-aaaradiusclientports-to-the-radius-connection-pool).

### Fix duplicate socket option in SCTP Diameter transport

Previously, SCTP Diameter transports emitted both `nodelay` and `sctp_nodelay` in the socket option list. This produced a duplicate option that could cause unexpected transport behavior.

This release corrects the SCTP transport to emit only `sctp_nodelay` for SCTP connections.

### Fix broken queries on the SMC Overview Grafana dashboard

The bundled `smc-overview` dashboard had several latent panel defects that prevented Grafana from rendering data correctly across multiple panels:

- **GTP-C contexts and counts**: panel queries used template variables (`$smc_namespace`, `$smc_pod`) that no longer aligned with the variables shipped by the dashboard. Realigned to `$namespace`, `$pod`, and a new `$instance` selector populated from the service label, and pod / namespace template variables now source from `up{container="smc-ergw"}` so they survive the Erlang atom collector being disabled.
- **AAA sessions, Hold OCS sessions, Outstanding Diameter requests**: triggered a `RangeError("toFixed")` crash because `decimals: -1` is not a valid panel option in current Grafana. Set to `0`.
- **Outstanding Diameter requests**: query grouped by `(handler)` and filtered by a non-existent `state="ocs_hold"` label. The metric `ergw_aaa_diameter_outstanding_requests` carries `name` and `type` labels only, so the panel never had data. Query rewritten.
- **Requests/Response rate, Duplicate requests rate**: `gtp_c_socket_messages_*` was grouped by a non-existent `result` label, dropping every series. Removed.
- **IP pool panels**: queries used renamed metrics (`ergw_cluster_ip_pool_*` is now `ergw_local_pool_*`) and a stale `apn="$APN"` filter on the IPv6 total query. Updated.
- **Allocated IPv4 addresses**: the IPv4 used target lacked the `k8s_cluster_name="$cluster"` filter, so it pulled series from other clusters when the data source serves more than one. Filter added.
- **Response time [ms] panel**: division had a leading minus sign, used the raw `_count` gauge instead of `rate(_count)`, and the numerator and denominator carried mismatched label sets so series were silently dropped. Rewritten as a properly aggregated `rate(_sum) / rate(_count)` ratio.
- **Diameter connections panel**: a second target wrapped `absent(diameter_connections{...})` in `sum by (svc, state)`, which can never produce a series under regex matchers because `absent()` does not propagate the namespace / pod / service labels. Removed; Grafana now renders "No data" naturally when no series exist.

Existing dashboards regenerate from the bundled JSON when the support chart is upgraded; no operator action is required.

### Configure the Prometheus collector list explicitly

Previously, the chart relied on the upstream default Prometheus collector list. Disabling the Erlang atom collector (or any other optional collector) could drop unrelated SMC metrics from the scrape output, because the default list grouped erGW, AAA, Diameter, and OS process collectors with the optional ones.

This release configures the collector list explicitly. erGW, AAA, Diameter, and OS process metrics are now always exported regardless of which optional Erlang Virtual Machine collectors are enabled. The change takes effect on chart upgrade; no operator action is required.

### Replace `prometheus_process_collector` with a pure-Erlang fork

Previously, the `prometheus_process_collector` library read process statistics through a Linux Natively Implemented Function (NIF). In production, when more than one Prometheus `ServiceMonitor` scraped the same SMC `/metrics` endpoint concurrently, a transient `/proc` read failure could kill the Erlang VM.

This release switches `prometheus_process_collector` to the `RoadRunnr/prometheus_process_collector#nif-to-erlang` fork, which reads `/proc` from pure Erlang. The fork keeps the same module name and metric names, so a transient read failure becomes a missing sample, not an aborted VM. The change takes effect on chart upgrade; no operator action is required.

## Maintenance

### Modernize GitHub Actions workflows

This release updates all GitHub Actions workflows to use SHA-pinned action references and upgrades the CI runner from Ubuntu 22.04 to Ubuntu 24.04. Two unmaintained third-party actions (`battila7/get-version-action`, `haya14busa/action-cond`) are replaced with inline shell expressions.

## Migration guide

### Adaptive load control

Adaptive load control is **off by default**. Upgrading SMC without changing the values file preserves pre-3.15 admission behavior exactly. No action is required.

Operators who want to evaluate or adopt the new admission path should follow the staged rollout below. Each step is individually reversible.

#### Stage 1 — shadow evaluation with `rate-limit-observe`

Set the mode to `rate-limit-observe` in a representative environment:

```yaml
loadControl:
  mode: rate-limit-observe
```

Admission decisions do not change. The `jobs` queues continue to gate traffic exactly as before. The adaptive stack runs in parallel and reports, through Prometheus metrics and structured logs, what it **would** have decided. Compare the shadow shed rate (`ergw_adaptive_requests_shed_total`) with the actual `jobs` rejections (`ergw_admission_requests_shed_total`) over a representative traffic window. Large differences are not a problem in themselves — the two controllers use fundamentally different admission logic — but they do indicate where behavior will change when you flip to `adaptive` mode.

#### Stage 2 — flip to `adaptive` during a maintenance window

Once the shadow behavior looks reasonable, switch to full adaptive control:

```yaml
loadControl:
  mode: adaptive
```

The adaptive stack is now responsible for admission. Monitor `ergw_adaptive_rejection_ratio`, `ergw_adaptive_inflight_limit`, and `ergw_adaptive_queue_waiters` during the window. Convergence takes a few seconds for the PID controller to ramp up under load, and about one minute for Vegas to recover the concurrency limit after an overload ends.

#### Rollback

If anything unexpected happens, roll back to rate-limit admission through the OAM REST API:

```bash
curl -X PUT -H 'content-type: application/json' \
     -d '{"mode":"rate-limit"}' \
     http://{SMC_POD}:9090/oam/v1alpha/load_control/mode
```

The mode change is atomic and takes effect on the next admission decision. Requests already in flight complete through the backend they were admitted under. No restart, no Helm upgrade, no configuration file change. To make the rollback persistent across restarts, set `loadControl.mode: rate-limit` (or remove the `loadControl` section entirely) in the Helm values and reapply the chart.

#### Tuning guidance

The default PID integral gain (`ki`) in the upstream schema is `1.4`, which is generally too aggressive for SMC traffic. For most deployments, set `loadControl.rejector.ki: 0.2` explicitly when enabling `adaptive` mode. The [tuning guidance](https://docs.cennso.com/components/smc/3.15/reference/load-control.md#tuning-guidance) in the technical reference covers this and other common adjustments.

### Migration from `requestLimits` to `loadControl.rateLimit`

The `requestLimits` Helm values and the new `loadControl.rateLimit` section both configure the same underlying runtime admission queues for the `create`, `delete`, and `other` message tiers. They are no longer independent in SMC 3.15.

To keep the transition smooth, the chart now **translates `requestLimits` into `loadControl.rateLimit` automatically** when the user has not set `loadControl.rateLimit` explicitly. Upgrading from a pre-3.15 release without touching the values file therefore preserves existing admission behavior.

The translation uses this per-tier field mapping:

| `requestLimits` | `loadControl.rateLimit` |
| --- | --- |
| `rate` | `rate` |
| `queueTime` | `max_time` |
| `queueLen` | *not translated — see the explanation that follows the table* |

`queueLen` (the old `jobs` `max_size`) does not appear in the new schema. On a deployment running the new SMC image, the queue length is instead controlled by `loadControl.queue.max_queue` (in `adaptive` mode) or by setting `loadControl.rateLimit.*.counter` for a concurrent-request cap (in `rate-limit` mode). Operators who relied on a tight `queueLen` for overload protection should take one of these paths explicitly.

The `data` tier is not part of `requestLimits` but does exist in `loadControl.rateLimit`. It covers PDU forwarding between the User Plane Gateway and SMC, which is almost entirely IPv6 Neighbor Discovery traffic in practice. It is safe to leave at the default on an IPv4-only deployment.

> [!CAUTION]
> Do not set `loadControl.rateLimit.data.rate` (or `counter`) lower than the `create` tier equivalent. Under overload, this starves IPv6 Neighbor Discovery and breaks IPv6 connectivity for sessions that were otherwise admitted successfully.

`requestLimits.upfRestart` is **not translated**. It has no counterpart in `loadControl.rateLimit` and no `adaptive` mode. Continue to set it through `requestLimits.upfRestart.rate` as before — it stays on the older `sys.config` configuration path for all admission modes.

When `loadControl.rateLimit` is set explicitly in the values file, the translation is skipped and `requestLimits` is ignored for the `create`, `delete`, and `other` tiers. Operators who have been relying on `requestLimits` can opt into `loadControl.rateLimit` at their own pace; there is no forced migration. A future SMC release may deprecate `requestLimits` entirely, but no removal date is set.

> [!TIP]
> For a detailed operational guide — priority-tier rationale, PID and Vegas algorithm explanations, the full Helm parameter table, per-metric monitoring signals, and troubleshooting signatures — see the [Adaptive load control](https://docs.cennso.com/components/smc/3.15/config/load-control.md) documentation.

### Migration from `aaa.radius.clientPorts` to the RADIUS connection pool

SMC 3.15 moves the RADIUS client to a dynamic per-server connection pool. The new eradius client no longer reads the global `aaa.radius.clientPorts` value, so `clientPorts` is **deprecated**.

Upgrading without changing the values file preserves the previous behavior. When you do not set `aaa.radius.noPorts`, it defaults to `aaa.radius.clientPorts`, so each per-server pool keeps the size you configured before. No action is required.

To adopt the new options, set them under `aaa.radius`:

- `noPorts` — active UDP sockets per RADIUS server. This replaces `clientPorts`.
- `maxPortsPerServer` — limit on sockets per server. SMC applies it as backpressure once a server reaches the limit.
- `reqidReuseTimeout` — time (in milliseconds) defining how long SMC quarantines a retired source port before reuse.

Once you set `noPorts`, remove `clientPorts` from the values file. A future SMC release may remove `clientPorts` entirely, but no removal date is set. For the parameter descriptions and defaults, see the [chart configuration reference](https://docs.cennso.com/components/smc/3.15/installation/chart-configuration.generated.md).
