Skip to main content
Version: 8.9 (unreleased)

Manage secondary storage

Manage your secondary storage carefully to maintain data integrity, performance, and system stability.

For definitions and conceptual context, see secondary storage.

Modifying secondary storage data

warning

You should never manually modify data stored in secondary storage unless instructed by Camunda Support during an active support case. Do not make direct edits to data in secondary storage outside of explicit Camunda Support guidance.

Risks of manual modification

Unsupervised changes to secondary storage data can lead to severe issues, such as the following:

RiskDescription
Data lossManual edits may delete or overwrite essential records that cannot be recovered without backups.
Data corruptionStructural or value changes can leave indices or tables in inconsistent states, leading to application errors.
Unsupported system statesUnapproved modifications may break compatibility with upgrades, patches, or new features.
Troubleshooting challengesCustom edits make it difficult for support engineers to diagnose and resolve issues.
Security vulnerabilitiesUnauthorized changes can expose sensitive data or weaken access controls.
Compliance issuesAltered records may violate internal or external data-integrity regulations.

Configuring capacity and redundancy

Secondary storage configuration depends on the backend you choose (for example, Elasticsearch/OpenSearch or an RDBMS). Use the documentation for your selected backend and validate decisions against your expected workload.

note

Backend selection and sizing should be based on benchmarking and realistic workload expectations. Prefer configuration choices that you can validate with measured throughput, latency, and retention needs.

Elasticsearch/OpenSearch: shards and replicas

If you use Elasticsearch/OpenSearch as your secondary storage backend, configure shards and replicas to support resilience and scalability.

Shards

Define shard count according to your data size and expected growth.

  • Start with 1–5 primary shards per index.
  • More shards can improve scalability but increase management complexity.
  • Avoid over-sharding, which can reduce performance and add unnecessary overhead.

Replicas

  • Single-node clusters: Do not configure replicas. Replicas provide redundancy only when distributed across multiple nodes. On a single node, replicas remain unassigned and may prevent the cluster from reporting as healthy.

  • Multi-node clusters: Configure at least one replica per index. Replicas ensure fault tolerance by keeping data available if one node fails.

Backups

Regular backups of your secondary storage are critical for disaster recovery and business continuity.

  • Follow the official Camunda backup procedure step by step.
  • Schedule backups regularly based on data volume and business requirements.
  • Periodically test restore operations to confirm that your backups are valid and usable.

Index templates

If you use Elasticsearch/OpenSearch, Camunda uses index templates to define settings and mappings for indices.

To prevent issues:

  • Avoid using custom index templates that conflict with Camunda’s defaults. Templates with higher priority may override Camunda mappings and cause incorrect index creation.
  • Do not delete or modify existing Camunda index templates without explicit guidance from Camunda Support.

If your provider includes predefined wildcard index templates, set a higher priority for the Camunda templates to prevent conflicts.

Monitoring secondary storage health

Use the Data Layer Dashboard to monitor performance and detect issues with your secondary storage integration.

For example:

  • Track exporter and indexing latency.
  • Detect shard or replica imbalances (Elasticsearch/OpenSearch).
  • Identify degraded query performance early (Elasticsearch/OpenSearch or RDBMS).