For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.8

Elasticsearch and Opensearch

The Orchestration Cluster stores and reads data from either Elasticsearch or OpenSearch. You can select the database by setting the CAMUNDA_DATABASE environment variable or the equivalent configuration property.

Valid values: elasticsearch (default) or opensearch.

CAMUNDA_DATABASE=opensearch

We now support Amazon OpenSearch. To see which versions are supported, refer to supported environments. Using Amazon OpenSearch requires a new Camunda installation. Migration from previous Elasticsearch setups is not supported.

Connection settings​

To connect to a secured (HTTPS) Elasticsearch or OpenSearch instance:

  • URL protocol: Use https instead of http.
  • Authentication: Set a valid username/password combination for Basic authentication.
  • AWS credentials: For Amazon OpenSearch, set awsEnabled to true to use AWS credentials instead of Basic authentication.
  • SSL/TLS: SSL settings such as self-signed or disabling hostname verification should only be used if connection issues occur.
  • JVM certificates: Certificates may need to be imported into the JVM runtime.

You can specify either host and port (deprecated) or url (recommended).

Common configuration options​

note

{ES/OS} in the names below is either elasticsearch or opensearch.

NameDescriptionDefault value
camunda.data.secondary-storage.{ES/OS}.cluster-nameName of the Elasticsearch/OpenSearch clusterelasticsearch / opensearch
camunda.data.secondary-storage.{ES/OS}.urlURL of the cluster REST APIhttp://localhost:9200
camunda.data.secondary-storage.{ES/OS}.usernameUsername to access the cluster REST API-
camunda.data.secondary-storage.{ES/OS}.passwordPassword to access the cluster REST API-
camunda.data.secondary-storage.{ES/OS}.security.certificate-pathPath to SSL certificate-
camunda.data.secondary-storage.{ES/OS}.security.self-signedCertificate is self-signedfalse
camunda.data.secondary-storage.{ES/OS}.security.verify-hostnameValidate hostname for SSLtrue
camunda.database.aws-enabledUse AWS credentials (OpenSearch only). Also set zeebe.broker.exporters.camundaexporter.args.connect.awsEnabled. Without Helm, also set the exporter class name. In Helm, global.opensearch.aws.enabled sets both.false
camunda.data.secondary-storage.{ES/OS}.index-prefixPrefix for index names-
camunda.database.index.number-of-shardsNumber of shards for all indices1
camunda.database.index.number-of-replicasNumber of replicas for all indices1
note

The schema manager creates the indices from camunda.database.index.*. The Camunda Exporter args.index shard and replica settings do not change the indices. In Helm, set the replica count with orchestration.index.replicas.

The shard count applies only to new indices. To change it for existing indices, reindex them. The replica count also applies to existing indices: at startup, the schema manager updates their replica count to the configured value.

Application configuration examples​

Elasticsearch​

camunda:
data:
secondary-storage:
elasticsearch:
cluster-name: elasticsearch
url: https://localhost:9200
security:
self-signed: true

OpenSearch​

camunda:
data:
secondary-storage:
opensearch:
cluster-name: opensearch
url: https://localhost:9200
security:
self-signed: true

Disable Elasticsearch deprecation logging​

For Elasticsearch version ≥8.16.0, it is recommended to turn off deprecation logging:

curl -X PUT "http://localhost:9200/_cluster/settings" \
-H "Content-Type: application/json" \
-d '{
"persistent": {
"logger.org.elasticsearch.deprecation": "OFF"
}
}'

Notes​

  • Settings like self-signed, SSL verification, or AWS credentials apply depending on your deployment environment.
  • Templates for indices are created automatically during first startup or upgrades. Manual adjustments to shards, replicas, or index settings can be made in the cluster templates.