Using an external OpenSearch or Elasticsearch cluster with Shuffle: when teams need it
A security team that already runs a managed or shared OpenSearch or Elasticsearch cluster can point Shuffle at it instead of the bundled node. Shuffle keeps its document database in OpenSearch, so an external cluster replaces the bundled node and changes four things: the connection, TLS and credentials, index naming, and the backup process. According to Shuffle's architecture docs, the server side is made of a frontend, a Go backend API on port 5001, and an OpenSearch document database, while the runtime side (Orborus) polls the backend for jobs and starts workers and app containers. Workflow definitions, execution records and stored app data all depend on that database, so the choice of cluster affects the whole platform, not just search.
The bundled node suits a single server or a test environment. The high availability guidance in Shuffle's configuration docs recommends an OpenSearch cluster, along with shared files over NFS when several backends run and more than one Orborus node so workflows keep running after a failure. Teams should weigh whether an existing cluster already has the replication, patching, and monitoring they need, and whether the security team can get its own index space and roles on it. Ask the cluster owner for the version, the TLS chain, the authentication backend, and the expected load before any Shuffle setting is changed. Confirm the supported OpenSearch and Elasticsearch versions with Shuffle's current documentation, since compatibility is not something to assume from the wire-compatibility of the two projects.
The decision also has a cost on the shared side. A shared cluster means Shuffle's indexes sit alongside other workloads, so capacity, index lifecycle rules, and backup schedules need an owner agreed in writing. Plan for the day the cluster is upgraded: the team that runs it must know Shuffle is a dependency, and the Shuffle team must know which versions are tested. Before going live, run a restore test from the external cluster's snapshots to confirm that workflows, executions, and stored credentials come back together.
Configuration options and when each fits
The bundled OpenSearch node runs alongside Shuffle in the same deployment, which keeps setup short for a single server. An external cluster is a separate system that your platform team or a provider operates, and Shuffle connects to it over the network. Shuffle stores workflows, execution records and saved app credentials in its OpenSearch document database, so this choice decides who owns that data store day to day.
- Connection settings: The backend, and any Orborus or worker host that reads results, must reach the cluster endpoint. Confirm the exact keys in the Shuffle configuration docs before you write them into your environment file or Helm values.
- TLS trust: If the external cluster uses TLS, the Shuffle backend must trust the certificate authority that signed it. Plan the CA bundle and renewal before cutover.
- Credentials: Give Shuffle a dedicated cluster user with only the roles it needs, and keep cluster administrator credentials out of Shuffle's configuration.
- Operations: Backups, patching, capacity and restores move to your cluster team. The Shuffle high availability guidance expects an OpenSearch cluster, so a single bundled node is not a cluster.
- Encryption modifier: Saved app credentials are encrypted with the SHUFFLE_ENCRYPTION_MODIFIER secret wherever the cluster runs. Losing or changing that secret breaks every saved app authentication.
Before choosing, check whether your availability target requires a cluster and who will carry the operational duties for the external store.
OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with that version, so the protocol-level connection looks similar from Shuffle's side. The choice between them is mainly about license terms, supported versions, security features and upgrade path. The OpenSearch project publishes its software under the Apache License 2.0, and its FAQ does not describe a paid edition. Any Elasticsearch distribution you already run carries its own license and support terms.
- Licensing: Confirm the license and support terms of any Elasticsearch distribution with its vendor before you rely on it for security operations data.
- Version coverage: Ask Shuffle which cluster distributions and versions it has tested against, and check the OpenSearch FAQ for the compatibility statements that apply to your target version.
- Security features: The OpenSearch Security plugin covers TLS, role-based access, audit logging and several identity backends. Confirm which of these your Elasticsearch distribution provides under its license.
- Upgrade path: OpenSearch supports rolling upgrades from indices created on Elasticsearch 6.0 through 7.10, which matters if an existing cluster already holds Shuffle data. Rehearse the upgrade on a copy first.
- Release cadence: OpenSearch targets a new minor version about every eight weeks, and versions in maintenance receive security patches but no new features. Build a patch schedule around that cadence.
If you already run an Elasticsearch cluster, confirm the version Shuffle supports before choosing the existing cluster over a new OpenSearch one.
A dedicated cluster serves Shuffle alone, so capacity, restarts, patching and access roles map to one workload. A shared cluster hosts Shuffle alongside other applications, which lowers infrastructure overhead but adds collision risk, shared capacity limits and a broader restore scope. In a shared cluster, index prefixes are the usual way to keep Shuffle's indices separate from other data, and you should confirm the prefix setting in the configuration docs before relying on it.
- Index prefixes: Set a prefix that is unique to this Shuffle instance so its indices cannot collide with another application's. Test the prefix on a non-production cluster and confirm it applies to every index Shuffle creates.
- Access control: On a shared cluster, use role-based access and document-level security from the OpenSearch security docs to limit the Shuffle user to its own indices.
- Change control: Shared clusters need agreed change windows, because an upgrade or restart for one tenant affects all of them.
- Capacity: Set storage and memory limits per workload so one application cannot starve Shuffle's document store during a spike.
- Backups: Snapshots on a shared cluster often cover more than Shuffle. Name the Shuffle indices in the backup scope and run a restore test that brings back only those indices.
Decide the tenancy model before the first start, because moving Shuffle indices from a shared cluster to a dedicated one later is a migration project.
Setup sequence for connecting Shuffle to an existing cluster
This sequence takes an existing OpenSearch or Elasticsearch cluster from unknown state to one where Shuffle's backend reads and writes its own indexes with a dedicated, least-privilege account. Each step closes with a check you can run before moving on.
Confirm version compatibility with the target cluster
Before changing anything, record the exact version of the cluster you plan to use and the OpenSearch version your Shuffle release expects. OpenSearch is a fork of Elasticsearch 7.10 and is wire-compatible with it, so confirm which product and version family the cluster runs, then check that the cluster sits within the compatibility range documented for the Shuffle release you run. Check the Shuffle configuration docs and the release notes for the version you deploy, and confirm with your platform team whether the cluster is still in maintenance. Done when you have a written note of both versions and a yes or no from the Shuffle documentation on compatibility.
Create a dedicated user and role
Ask the cluster owner to create a service account used only by the Shuffle backend, with a role scoped to the index pattern Shuffle uses and nothing else. Grant only the index, read and write permissions the backend needs, and avoid cluster-wide admin rights and the built-in admin account. If the cluster uses the OpenSearch Security plugin, create the role and role mapping there, and keep the password in your secrets manager rather than in a shared document. Done when a login with the new account succeeds and a request to an index outside the Shuffle pattern is denied.
Configure the connection URL and TLS trust
Set the backend's connection URL to the cluster's HTTPS endpoint and supply the CA certificate that signed the cluster's certificate so the backend verifies it. Do not disable certificate verification to get past a connection error; fix the trust chain instead. Store the username and password as environment values sourced from your secrets handling, not inline in a committed file. Confirm the exact configuration keys in the Shuffle configuration docs for your release. Done when the backend starts without TLS errors in its logs and an authenticated request to the cluster root returns the cluster's identity.
Set the encryption modifier before first use
Set SHUFFLE_ENCRYPTION_MODIFIER to a value you have generated and recorded in your secrets store before the backend writes any app credentials to the new cluster. Shuffle encrypts saved app credentials and API keys with AES-256 using this value, and the docs warn that losing or changing it breaks all saved app authentications. If you are moving an existing install, do not generate a new value; reuse the one already in use so stored credentials still decrypt. Done when the value is in your secrets store, a backup copy is held by a second authorized person, and the setting is in the environment the backend will read.
Restart the backend and confirm index creation
Restart the Shuffle backend so it reads the new connection settings, then watch its startup logs for errors about index creation, authentication or mapping conflicts. Shuffle creates the indexes it needs on first connection, so check the cluster for the expected index names under your chosen prefix, if you set one for a shared cluster. Restart only the backend and do not restart Orborus until the backend reports healthy. Done when the backend logs show a clean start and the cluster lists the Shuffle indexes with the expected prefix.
Verify Shuffle reads and writes its indexes
Sign in to the Shuffle frontend and create a test workflow with one trigger and one non-destructive action, then save it and run it. Confirm the workflow record appears in the cluster under the Shuffle indexes, and that the execution record is readable from the Shuffle UI after a page reload. Then save a test app credential and verify it persists after a backend restart, which exercises the encryption setting end to end. Done when the workflow, execution and credential are all visible after the restart and the cluster shows writes from the service account only.
Record the configuration and retest after changes
Write down the final connection settings, the service account name and role scope, the index prefix, the encryption modifier location and the verified Shuffle version, and store the record with your runbook. Repeat the read and write check after any cluster upgrade, certificate rotation or password change, because those can break the connection without changing Shuffle. Done when the runbook names an owner for the cluster account and the verification steps are scheduled as part of change control.
How the backend, Orborus and the external cluster connect
The diagram starts at the browser and frontend, which call the Go backend on port 5001. The backend stores its documents in the external cluster, and Orborus polls the backend for jobs and starts a worker for each execution, with the worker starting app containers. Check where TLS and credentials apply on each hand-off: the backend-to-cluster connection crosses from the Shuffle host network into the cluster network, and that is the connection the cluster's security settings must cover. Orborus and workers reach the backend, not the cluster directly, so they do not need the cluster credentials.
Backend is the only component that writes to the external cluster.
Security controls to set on the connection
A connection between Shuffle and an external cluster carries credentials, indexed case data and saved app secrets, so each control below protects a different part of that path. Set them together before the first workflow runs, then verify each one from the Shuffle side and the cluster side.
Scope the Shuffle credential
Create a dedicated OpenSearch user for Shuffle rather than reusing an administrator account. Grant it only the index patterns and cluster permissions Shuffle needs, and confirm with your OpenSearch administrator which permissions the Shuffle version you run requires. Store the password in the environment file or secret store, never in workflow definitions, and rotate it through a planned change so the backend restarts cleanly.
Verify the cluster certificate
Keep TLS verification on between the Shuffle backend and the cluster. Load the certificate authority that signed the cluster's transport and HTTP certificates into the backend, and confirm that the hostname in the connection URL matches a name on that certificate. Turning verification off hides a misconfigured or intercepted connection, and it is the first thing auditors ask about in a review.
OpenSearch security docsRestrict the network path
Allow traffic from the Shuffle backend and any Orborus or worker hosts that read or write the database to the cluster's HTTPS port only, and block all other sources. Confirm which hosts need the path during design, because workers that run on other nodes or in another Kubernetes cluster often need it too. Test from each source host so a missing rule shows up before a deployment rather than during an incident.
Plan for the encryption modifier
Shuffle encrypts saved app credentials and API keys in OpenSearch using the SHUFFLE_ENCRYPTION_MODIFIER value. Moving to a new cluster keeps these records only if the same modifier is set on the new backend, so record it in your secret store before the cutover. Changing or losing it breaks every saved app authentication, and the fix is re-entering each credential by hand.
Shuffle configuration docsEnable audit logging on the cluster
Turn on the OpenSearch Security audit log so the cluster records authentication events and requests made by the Shuffle user. Send these logs to your central log platform and set retention to match your incident response needs. Without this record, you cannot tell whether a change to workflow data came from Shuffle, a person using the same account, or another client.
Use role-based access controls
OpenSearch Security provides role-based access control, document-level and field-level security, and field masking. Map the Shuffle user to a role that limits which indices it can read and write, and consider field masking for any personal data Shuffle stores. Review the role with the cluster team after each Shuffle upgrade, since new features can add indices or require different permissions.
OpenSearch security docsWhat changes for backups when OpenSearch is external
With a bundled OpenSearch node, the volume that holds Shuffle's document database is also its backup, so copying that volume covers workflows, saved app credentials and execution history. Once Shuffle points at an external cluster, that volume no longer holds the data. The cluster owner's snapshot process becomes part of Shuffle recovery, and the Shuffle team has to confirm with that owner which indexes are captured, how often snapshots run, where they are stored, how long they are kept and who can trigger a restore. Shuffle's own volumes still need backing up for the files and app data they hold, which is a separate task from the cluster snapshot.
The encryption modifier is the item most often missed. Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret, and the configuration docs warn that losing or changing it breaks every saved app authentication. A cluster snapshot restores encrypted values but not the key that opens them, so store the modifier in a separate secrets vault with its own access controls and record which Shuffle instance it belongs to. Confirm with your cluster operator that snapshot repositories are not readable by people who could also read that vault.
A restore is only proven when a fresh Shuffle instance, with the same version and the restored modifier, connects to the restored cluster and runs a workflow that uses a saved credential. Schedule this test on a regular basis and record the result. Ask the cluster operator for the restore time they have demonstrated, whether snapshots cover every tenant index on a shared cluster, and whether a restore can target only Shuffle's indexes without touching other applications' data.
Limits and what to confirm in your environment
Several details that determine whether an external cluster works for Shuffle are not settled by the public material alone. The cards below list what to verify with Shuffle and in your own environment before you point production workflows at a shared cluster.
Exact Shuffle and OpenSearch versions
Shuffle releases move quickly, and the OpenSearch line you run must match what the Shuffle release you pin is tested against. Confirm the exact Shuffle release in your deployment and the OpenSearch version range it supports, then check that the cluster version is on a line still in maintenance. Do not assume a newer cluster is automatically compatible. Record both versions in your change log so an upgrade on either side is reviewed together.
Shuffle releasesWhether Elasticsearch is supported
OpenSearch is wire-compatible with Elasticsearch 7.10, but wire compatibility does not guarantee that Shuffle's own queries, index mappings and security settings behave the same way. Ask Shuffle directly whether Elasticsearch is a supported backend for your release, and do not treat a successful connection test as support. If the answer is no, the cluster choice is OpenSearch.
Index prefix handling
A shared cluster needs Shuffle's indexes separated from other tenants' data. Check the configuration docs for how Shuffle names its indexes and whether a prefix setting is available for your release. Test that a second Shuffle instance or unrelated application on the same cluster cannot read or delete Shuffle's indexes, and confirm who owns index lifecycle changes.
Configuration docsPerformance at your execution volume
Cluster load depends on how many workflow executions run, how large their results are and how long Shuffle retains them. The public material does not give throughput figures for an external cluster, so measure it. Run a representative execution load against a staging cluster, watch heap, disk and query latency, and size the cluster from your own numbers rather than from a generic guide.
Effect of the paid edition on external storage
Shuffle says feature limits differ between the open-source and paid editions, and that limits are enforced since v2.1.1. Confirm in writing whether a paid license changes how an external OpenSearch or Elasticsearch connection is handled, including scaling, support scope and any licensing that applies to the storage path. Ask for the answer in your quote so it is part of the agreed scope.
Shuffle pricing articleQuestions buyers ask before connecting an external cluster
Does Elasticsearch work as well as OpenSearch for Shuffle?
Confirm this before you commit, because the supplied facts cover OpenSearch compatibility, not a Shuffle test matrix for Elasticsearch. OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with it, but compatibility at the protocol level does not mean every Shuffle feature has been verified against a given Elasticsearch release. Ask Shuffle which document database versions the release you plan to run is tested against, and ask your team whether a licensed Elasticsearch tier is already in place. If the answer is OpenSearch, the Apache License, Version 2.0 applies to all OpenSearch software, and the OpenSearch FAQ describes no paid edition. Our recommendation is to pick the engine your team already operates and confirm the version pairing in writing.
What drives the cost of connecting an external cluster?
The main cost is the internal and partner effort to design, test and cut over the connection, not a license for the connection itself. Cost rises with the number of environments, the TLS and credential model you require, whether the cluster is shared with other applications, and how much index and retention design the cluster needs. Your own team pays for cluster capacity, backups and on-call time, which recur. A written quote from a partner should separate one-time work (connection design, validation, cutover) from recurring work (upgrades, index maintenance, support). Ask each vendor to state which environments and cluster versions their price assumes.
How long does a migration from the bundled node take?
Duration depends on data volume, the number of workflows and executions you keep, the number of environments, and how much downtime your change window allows. The supplied facts do not give a duration, so ask for a timeline built from a rehearsal on a copy of your data. Plan for a backup, a restore into the external cluster, a connection change, a validation pass on workflows and saved credentials, and a rollback path. Large retained history and frequent executions lengthen the window because data must be copied and checked before cutover.
What must our internal team provide before the work starts?
Your team must provide access and decisions that only you can make. That includes the cluster endpoint and version, a service account with the rights Shuffle needs, the CA chain for TLS, the network path from the Shuffle backend to the cluster, and a named owner for backups and capacity. You should also confirm whether the cluster is shared, which index prefix each environment will use, and where the SHUFFLE_ENCRYPTION_MODIFIER value is stored. Missing any of these items usually moves work into the test phase and extends the schedule.
Can our team connect Shuffle to an external cluster on its own?
Yes, if your team has the skills to operate the cluster, manage TLS and credentials, and test workflows after a change. The configuration step is small compared with the testing and rollback planning around it. Teams that run OpenSearch or Elasticsearch already, and that have a staging Shuffle, usually handle this in-house. A partner adds value when the cluster is shared across departments, when you need a documented cutover, or when you need evidence for an assessor. Decide based on who will answer the on-call page at 2 a.m.
How do index prefixes help when several environments share a cluster?
Index prefixes keep Shuffle's indexes separate from other data in the same cluster, so two Shuffle environments or a Shuffle and an unrelated application can share hardware without reading or overwriting each other's documents. Use a distinct prefix per environment, such as one for production and one for staging, and record the mapping in your runbook. Prefixes do not replace access control: pair them with cluster roles that limit each service account to its own indexes, and confirm with the OpenSearch security documentation how role-based access control and document-level security apply to your version. Plan retention and snapshot scope per prefix so one environment's backup policy does not affect another.
What happens to saved app credentials if the encryption modifier changes?
Saved app credentials and API keys become unusable. Shuffle encrypts them in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret, and the Shuffle documentation warns that losing or changing that value breaks all saved app authentications. Moving to an external cluster does not change this rule, so keep the modifier in your secrets manager, back it up separately from the cluster snapshots, and make sure a restored cluster is paired with the same value. Before any cutover, test one app authentication end to end in the new environment.
What changes for backups when Shuffle uses an external cluster?
The backup owner shifts from the Shuffle bundle to the cluster team. Snapshots must be configured on the external cluster, with repository access, retention and restore tests owned by that team, and the snapshot scope must cover the Shuffle prefixes. A restore into a fresh cluster must be rehearsed, and the encryption modifier must be backed up separately because snapshots of encrypted fields are not useful without it. Ask your vendor and cluster team to confirm the snapshot method supported by your OpenSearch or Elasticsearch version.
Where to confirm the current OpenSearch and Shuffle details
Confirm the OpenSearch facts for your target version on the official pages before you choose a cluster version or write any configuration. The OpenSearch releases page shows which minor versions are current, which are in maintenance and when a version reaches end of life, so it answers the question of whether the version you plan to run will still receive security patches during your deployment window. Treat that page as the source for lifecycle decisions, not for Shuffle compatibility, which Shuffle's own documentation governs.
Use the OpenSearch security documentation to confirm how the Security plugin is configured on your cluster: TLS for node and client traffic, the users and roles Shuffle will authenticate as, and whether your cluster exposes audit logging and index-level permissions that your security team expects. The OpenSearch install documentation covers the deployment methods the project supports, which helps you confirm the packaging your platform team will operate. Confirm both against the exact version your cluster runs, since defaults and setting names can change between releases.
Shuffle's configuration documentation, linked from the Shuffle configuration docs, is the authority for the environment variables that point the Shuffle backend at an external cluster, the index prefix handling for shared clusters and the encryption key that protects saved credentials. Read it alongside the release notes on the Shuffle GitHub releases page for the image tag you intend to deploy. Where the two sources disagree or the docs do not name a setting, raise it with Shuffle support before you rely on it in production.

