Skip to main content

Controller scalability

Contributors joan-ing

Trident improves controller scalability through increased concurrency across multiple storage drivers. When you enable controller scalability, the Trident controller processes storage operations in parallel instead of serializing them, which increases throughput in Kubernetes environments with many concurrent operations.

By default, enableConcurrency is set to false and Trident operates in serial mode.

Key concepts and definitions

Controller scalability

Controller scalability refers to the Trident controller's ability to process multiple storage operations in parallel rather than serializing them behind a single lock. These operations include volume creation, deletion, and resizing; snapshot creation and deletion; volume publish and unpublish; and backend management.

When you enable controller scalability, operations on different volumes and backends proceed concurrently. This increases throughput and reduces end-to-end operation time in environments with high numbers of concurrent PersistentVolumeClaim and VolumeSnapshot operations.

Default behavior (serial mode)

By default, enableConcurrency is set to false and Trident operates in serial mode for all new installations and upgrades from earlier Trident versions. Serial mode requires no configuration, and all backends and drivers function normally without additional configuration. No runtime behavior changes unless you explicitly set enableConcurrency to true.

Controller scalability support

The following drivers support controller scalability at general availability in Trident 26.10:

  • asa-r2 (SAN and NVMe)

  • ontap-san

  • ontap-nas

  • ontap-nas-economy

  • ontap-nas-flexgroup

  • ontap-san-economy

  • google-cloud-netapp-volumes

  • azure-netapp-files

  • solidfire-san

Note

The google-cloud-netapp-volumes and google-cloud-netapp-volumes-san drivers are different. Trident supports only google-cloud-netapp-volumes. Do not use google-cloud-netapp-volumes-san in backend configurations or examples.

How enableConcurrency works

The enableConcurrency option is a global, all-or-nothing setting. It cannot be scoped to individual drivers or backends. When you set it to true, all backends switch to concurrent mode simultaneously.

Important

Before enabling controller scalability, verify that every backend uses a supported driver. If any backend uses an unsupported driver, Trident will refuse to start and all storage operations across all backends will fail. Trident will also refuse to add new backends that use unsupported drivers while concurrency is enabled.

To identify the drivers used by your backends, run:

tridentctl get backends -n trident

If Trident refuses to start because a backend uses an unsupported driver, remove or reconfigure that backend, or disable controller scalability.

Before you enable

Before enabling controller scalability, identify the driver type for every backend in your Trident installation. Run tridentctl get backends -n trident, then use the table below to determine whether your environment is ready.

Your backend environment Can you enable concurrency? Production-ready? Guidance

All backends use supported drivers (asa-r2 SAN and NVMe, ontap-san, ontap-nas, ontap-nas-economy, ontap-nas-flexgroup, ontap-san-economy, google-cloud-netapp-volumes, azure-netapp-files, solidfire-san)

Yes

Yes

Safe to enable in production. All supported drivers will operate in concurrent mode.

Any backend uses an unsupported driver

No

No

Trident will refuse to start and all storage operations across all backends will fail. Remove or migrate unsupported backends before enabling.

Enable controller scalability

The enableConcurrency configuration option controls controller scalability. You must explicitly enable this option during Trident installation, or when you update an existing deployment.

Trident operator deployment

To enable controller scalability with the Trident operator, set enableConcurrency to true in the TridentOrchestrator custom resource (CR).

New installation

Create or edit the TridentOrchestrator CR and set enableConcurrency to true:

apiVersion: trident.netapp.io/v1
kind: TridentOrchestrator
metadata:
  name: trident
spec:
  namespace: trident
  enableConcurrency: true

Apply the CR:

kubectl apply -f tridentorchestrator_cr.yaml

Existing installation

Patch the existing TridentOrchestrator CR to enable controller scalability:

kubectl patch torc trident --type=merge -p '{"spec":{"enableConcurrency":true}}'

Verify that Trident applied the setting:

kubectl get torc trident -o jsonpath='{.status.currentInstallationParams.enableConcurrency}'

Helm deployment

To enable controller scalability with Helm, set the enableConcurrency value to true.

New installation

helm install trident netapp-trident/trident-operator --namespace trident --create-namespace --set enableConcurrency=true

Existing installation

helm upgrade trident netapp-trident/trident-operator --namespace trident --set enableConcurrency=true

Alternatively, set enableConcurrency to true in a custom values.yaml file:

# values.yaml
enableConcurrency: true

Then install or upgrade with the values file:

helm install trident netapp-trident/trident-operator --namespace trident --create-namespace -f values.yaml

tridentctl deployment

To enable controller scalability with tridentctl, pass the --enable-concurrency flag during installation.

New installation

tridentctl install -n trident --enable-concurrency

Existing installation

To enable controller scalability on an existing tridentctl deployment, uninstall Trident and reinstall it with the flag:

tridentctl uninstall -n trident
tridentctl install -n trident --enable-concurrency

Verify that controller scalability is enabled

After you enable controller scalability, verify that the Trident controller runs with concurrency enabled. Check the controller pod logs:

kubectl logs -n trident deploy/trident-controller | grep -i concurrency

The output includes a log entry that confirms concurrency is enabled.

Concurrency behavior

When controller scalability is enabled, the Trident controller applies the following behavior:

  • Trident replaces the single global lock with fine-grained, per-resource locking.

  • Trident serializes operations that modify the same resource to maintain data consistency.

  • Operations that only read from a resource proceed concurrently with other read operations on that resource.

  • Trident limits concurrent ONTAP API requests to 20 per management LIF to prevent overload of backend storage systems.

  • If multiple backends share the same management LIF, they share this 20-request limit.

Caveats and limitations

The following considerations apply to controller scalability in Trident 26.10:

  • Controller scalability supports only the drivers listed in Before you enable.

  • The Trident controller manages concurrency internally. This release provides no user-configurable concurrency limits.

  • Overall throughput depends on the storage driver in use, backend responsiveness, and Kubernetes API server performance.

  • High concurrency can increase load on backend storage systems.

  • Controller scalability behavior is not identical across all drivers.

  • Debugging concurrent operations can be more complex because of parallel execution. Metrics and logs can show interleaved operation output.

Recommendations

Before enabling controller scalability:

  1. Run tridentctl get backends -n trident and note the driver type for every backend.

  2. Confirm every driver appears in the supported driver list for your Trident version.

  3. If any driver is not in the supported list, stop. Do not enable concurrency until those backends are removed or migrated to a supported driver.

  4. After enabling, check the controller logs with kubectl logs -n trident deploy/trident-controller | grep -i concurrency.

  5. Monitor backend and Kubernetes API server performance after enabling.

    • Use general availability drivers for production environments that require high scalability.

    • Monitor backend and controller performance when you operate at scale.

    • Do not assume operation ordering in automation scripts.