Clustering OpenSearch for Shuffle

Shuffle keeps its workflow documents in OpenSearch, so a single node is a single point of failure. This page covers how to cluster OpenSearch for Shuffle, what to configure, and what to confirm before you start.

On this page

Why a clustered OpenSearch matters for Shuffle high availability

A single OpenSearch node is the weakest point in many Shuffle installs. In the architecture, the Go backend API on port 5001 sits in front of OpenSearch, which acts as Shuffle's document database. Workflow definitions, execution records, and the saved app credentials and API keys all live there. If that one node stops, the backend cannot read or write execution state, and the runtime side has nothing to pick up. Shuffle's architecture is split this way on purpose: Orborus polls the backend for jobs and starts a worker for each workflow execution, so the database is the shared point that every component depends on. The configuration docs list an OpenSearch cluster as the first item in their high availability guidance, ahead of the shared cache, shared files and redundant runtimes.

You likely need a cluster when the outage you are guarding against is a node loss rather than a bad configuration. The usual triggers are several backend instances behind a load balancer, more than one Orborus node so workflows keep running if one runtime fails, and a recovery objective that a restore from backup cannot meet. If your install is a single server on Docker Compose with one runtime and you accept downtime during a host failure, a single node may be a deliberate choice. Confirm that choice in writing, and confirm how long you can run without execution history or credentials. Before you change anything, check the cluster's health, the number of primary and replica shards on each index, and which node holds the .opendistro_security configuration. Then read the Shuffle disaster recovery architecture page and the retention and index rollover guidance, because a cluster does not fix a disk that fills up with old executions.

How the backend connects to a three-node OpenSearch cluster

The walk-through starts at the Shuffle frontend, which sends traffic to the Go backend API on port 5001. The backend holds one connection URL that lists all three OpenSearch nodes, so it can keep working when one node is unavailable. The three nodes form a cluster inside the client network and talk to each other over node-to-node TLS. Orborus runtimes poll the backend for jobs, so they sit on the same trust boundary. Check that every node name in the URL resolves from the backend and that each node joins the same cluster before you add workflows.

Backend reaches all three OpenSearch nodes through one URL, with cluster traffic kept inside the network.

How OpenSearch nodes find each other and form a cluster

Before a three-node OpenSearch cluster can serve Shuffle, the nodes must agree on which cluster they belong to and how they discover one another. Four settings do most of that work. The cluster.name value is the cluster identity: every node that should join must share it, and a node with a different value will start its own separate cluster even on the same network. Each node also needs a unique node.name, which is how operators and logs refer to it. Discovery is controlled by discovery.seed_hosts, a list of addresses a node contacts when it starts, and by cluster.initial_cluster_manager_nodes, which names the nodes allowed to vote in the first election. Shuffle does not form this cluster for you. Its own configuration only sees the OpenSearch endpoint it is given, so these settings belong to the OpenSearch layer and should be written down before any Shuffle change.

Three nodes are a common starting point because cluster-manager elections need a majority of eligible voting nodes. With three voters, the cluster can lose one node and still elect a manager and accept writes, which is the failure case Shuffle's high availability guidance is aiming at. Two nodes give no such margin: losing either one leaves no majority. The exact bootstrap settings, their names and their behavior differ between OpenSearch releases, and the install method (Docker, Helm, the Kubernetes Operator, tarball, RPM or Debian packages) changes where those values are set. Confirm the keys against the version you plan to run, using the creating a cluster guidance and the installation docs for your method, and test the chosen values on a non-production copy before the cluster carries Shuffle data.

Which cluster settings fit which environment

This table compares the common ways to run a three-node OpenSearch cluster for Shuffle, from Docker Compose on separate hosts to Kubernetes. Read each row for the environment it suits, what the method changes in discovery, data paths, heap and networking, and the trade-off you accept. Confirm every value against the install guide for your chosen OpenSearch version before you size a production cluster.

OptionWhen it fitsWhat it changesTrade-off
Single-host test layoutProof of concept or lab where Shuffle is not yet holding production dataAll three nodes share one machine, so discovery uses local names and ports must not collide; data paths sit on one diskNot a cluster in the failure sense: losing the host loses every node, so it cannot prove node-loss recovery
Docker Compose on separate hostsTeams running Shuffle Compose on their own servers who want three OpenSearch nodes on different machinesEach container gets a host-reachable address; discovery lists peer hosts explicitly; data volumes are bound per host; host networking or published ports must be set per nodeCompose is single-host by design, so you manage three Compose stacks, their volumes and upgrades by hand
Tarball, RPM or Debian installOrganizations that manage VMs with configuration management and want OpenSearch as a host serviceSettings live in the node configuration file; data and log paths are set on the host; the service manager controls start and restart; heap is set in the JVM options fileEvery node is configured and patched by your own tooling, so drift between nodes is your responsibility to catch
Helm or the Kubernetes OperatorClusters where Shuffle already runs on Kubernetes and the platform team operates stateful workloadsDiscovery and node roles come from the chart or operator; each node gets a persistent volume claim; resources and heap are set in the workload specRequires storage classes and cluster skills; a misconfigured volume or pod disruption setting can take quorum down during maintenance
Ansible playbookFleets of hosts where one reviewed playbook should build all three nodes the same wayPlaybook variables set discovery hosts, paths and TLS files consistently across nodesPlaybook versions must track the OpenSearch release you pin, and each change still needs a rolling restart plan
Discovery methodChoose by platform: static peer list on hosts, service names on KubernetesEach node must know the addresses of the other two before the cluster can formWrong or stale peer addresses are the most common reason a cluster fails to form; confirm the discovery setting for your version

Listing every node in Shuffle's OpenSearch connection URL

Point Shuffle at all three OpenSearch nodes, not just the one you migrated to. If the backend connects through a single address, every request fails the moment that node stops, even though the other two are healthy. Listing each node in the connection setting gives the backend somewhere else to send requests when one node is down. The exact configuration key and the URL format that accepts multiple hosts must be confirmed in the Shuffle configuration docs for the Shuffle version you run. The latest release noted for this guide is v2.3.0, but confirm the key against the documentation for your pinned tag before you edit any file, and do not copy a value from an older install or a forum post.

Check three details in the URL itself. First, the protocol must match the TLS setup you built on the cluster, so an https scheme against nodes serving plain HTTP, or the reverse, will fail for every node. Second, if the cluster uses the security plugin, the credentials the backend uses must be valid on every node, and they belong in your secrets store rather than in a file that is committed to version control. Third, confirm with your team which host names or addresses are stable across restarts, because a node that changes address will silently drop out of the list. Record the final value alongside the cluster build notes so the next person can see which nodes the backend was told about.

Test failover before you call the setup finished. With Shuffle running and a workflow execution or a simple read from the interface working, stop one OpenSearch node and repeat the same actions. Then stop a second node in a separate test window only if your plan says the cluster should still serve requests with two nodes down, which depends on your replica and quorum settings. Watch the backend logs for connection errors and confirm that new executions still save their results. Afterwards, bring the node back and confirm the cluster returns to green health before you consider the test complete. Repeat this check after every OpenSearch or Shuffle upgrade, because a changed connection format can break failover without any visible sign at normal load.

How to build the three-node cluster and move Shuffle data

This sequence takes a single-node OpenSearch instance behind Shuffle to a three-node secured cluster with a copy of the existing data, and confirms Shuffle reads and writes against it before the old node is retired. Each step closes with a check that the team can record.

  1. Confirm the Shuffle and OpenSearch version pairing

    Before any host changes, the platform owner checks the Shuffle release in use against the OpenSearch version it supports, using the Shuffle configuration and release notes. Record both versions and the target OpenSearch version, and confirm that the target is a supported release on the OpenSearch releases page. Done when the team has a written version pair that the Shuffle vendor documentation supports and that the change record references.

  2. Prepare three hosts with matching OpenSearch versions

    The infrastructure team provisions three hosts with the same OpenSearch version, installed from the same method on each, such as the Docker image, tarball or package listed in the OpenSearch install documentation. Confirm that the hosts can reach each other on the cluster transport port and that the JVM heap and disk sizing match the existing node's data volume. Done when all three nodes report the same version and can resolve and reach one another by name or address.

  3. Set cluster name and discovery on each node

    On every node, the team sets the same cluster name, a unique node name, the network host, and a discovery list that names all three nodes, then sets the initial cluster-manager nodes for the first formation. Ask the OpenSearch cluster documentation which settings apply to your version, because discovery keys have changed across releases. Done when all three nodes start, join one cluster, and the cluster health call reports three nodes.

  4. Enable the security plugin with TLS

    The security team enables the OpenSearch Security plugin and configures TLS for node-to-node transport and for client HTTP traffic, using certificates issued by the organization's approved authority. Decide up front who manages the certificates and how they are renewed, since Shuffle must trust the chain. Done when each node presents a valid certificate, an unencrypted connection is refused, and the cluster still forms with all three nodes.

  5. Create a least-privilege Shuffle service account

    An OpenSearch administrator creates a dedicated user for Shuffle, maps it to a role that grants only the index and cluster permissions Shuffle needs, and stores its password in the secrets system rather than in a plain configuration file. Confirm the exact permission set against the OpenSearch security documentation and the Shuffle configuration docs, then test it. Done when the service account can perform the read and write operations Shuffle needs and is denied access to indices and admin functions outside that scope.

  6. Snapshot or export the single-node data

    Before any data moves, the platform owner takes a snapshot of the existing single-node indices to a repository that all nodes can reach, or exports the indices another way the team has validated. Record the index list, document counts and the snapshot name, and store a copy of the Shuffle encryption modifier with the change record, because saved credentials depend on it. Done when the snapshot reports a successful state and the team has verified that its listed indices match the source.

  7. Restore or reindex data into the cluster

    The administrator restores the snapshot into the new cluster, or reindexes from the old node if a snapshot is not possible, and checks that shard allocation completes across the three nodes. Compare document counts and a sample of workflow and execution records against the source before anyone relies on the copy. Done when the restored indices are green, their counts match the recorded values, and sample records open correctly from the new cluster.

  8. Update the Shuffle connection URL and verify

    The Shuffle platform owner lists every cluster node in the OpenSearch connection URL setting, uses the Shuffle service account credentials, and restarts the backend. Then the team confirms cluster health, creates a test workflow, runs it, and checks that the execution record is written and readable in the cluster. Done when the cluster reports green or an understood yellow state, the test execution completes, and a node stop in a rehearsal leaves Shuffle still reading and writing.

TLS and credentials for node and client traffic

Transport TLS protects traffic between OpenSearch nodes as they replicate shards, elect a cluster manager and exchange cluster state. The OpenSearch Security plugin provides TLS for node traffic, and on a three-node cluster this should be enabled before any data is indexed so every node authenticates the others. Plan a certificate for each node that names its hostname or IP in the subject alternative name, and confirm the certificate chain every node presents is accepted by the others.

  • Per-node certificates: Issue one certificate per node with the correct names, rather than sharing a single certificate across all three.
  • Transport layer settings: Set the transport certificate, key and CA paths in the node configuration, and enable hostname verification where your setup supports it.
  • Discovery and transport ports: Confirm the transport port is open between all nodes, separately from the HTTP port Shuffle uses.
  • Clean start: Enable transport TLS before the first cluster forms so you do not have to re-form the cluster later.
  • Documented layout: Record which certificate belongs to which node so replacements are not guesswork.

Confirm the exact certificate settings for your OpenSearch version in the OpenSearch security documentation before you build.

Security risks to close before the cluster goes live

A three-node OpenSearch cluster holds Shuffle's workflow, execution and credential data, so it inherits the risk of that data. The cards below cover the exposures that most often survive a first build: open ports, plaintext node traffic, broad service accounts, the encryption secret, backups and admin activity. Verify each one before the cluster is treated as production.

Exposed OpenSearch ports

Each node listens for client requests and for node-to-node traffic. Publishing either port beyond the Shuffle backend hosts gives anyone on that network a direct path to the document store that holds saved app credentials. Confirm that only the Shuffle backend servers and the other cluster nodes can reach these ports, and that host firewalls and security groups enforce this rather than relying on the Docker network alone. Test from a host outside the allowed list, and record the result as evidence.

Unencrypted node traffic

Without TLS, cluster coordination traffic and client requests from the Shuffle backend cross the network in clear text. Enable TLS for both node-to-node and client traffic, using certificates issued for each node's name, and confirm that the backend connection URL uses the https scheme. Check that certificate expiry and renewal are on a schedule, because an expired certificate can stop the backend from reaching the cluster during an incident.

OpenSearch security docs

Over-privileged Shuffle service accounts

The account Shuffle uses to read and write its indices should hold only the index permissions it needs, not cluster-wide administration. Create a dedicated role for the backend, bind it to a dedicated user, and keep administrator credentials out of Shuffle's configuration. Review which roles can change cluster settings, since those settings control shard allocation and data deletion. Ask your team to document each role and who holds its credentials.

Encryption modifier stays fixed

Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER value. Migrating data from a single node to a cluster does not change this value, and it must match on every backend that reads the migrated data. Store it in your secrets manager, confirm the same value is deployed to all backends, and rehearse a restore on a test environment. Changing it breaks every saved app authentication.

Shuffle configuration docs

Backup and snapshot protection

A clustered store is not a backup. Snapshots of the cluster's indices should go to a repository that is separate from the cluster nodes and restricted to a backup role. Confirm who can create, list and delete snapshots, and that a deleted or corrupted index can be restored into a test cluster. Keep the encryption modifier in the same recovery plan, because restored credentials cannot be used without it.

Audit logging of admin access

Changes to roles, users, cluster settings and index deletion should leave a record that someone can review. The OpenSearch Security plugin provides audit logs, so enable them and decide where they are shipped and how long they are kept. Check that the logs record authentication failures and admin actions, and that the people reviewing them are not the same people making the changes.

OpenSearch security docs

Questions teams ask before clustering OpenSearch for Shuffle

How long does it take to cluster OpenSearch for Shuffle?

Duration depends on the size of the existing index, the number of hosts that need building, how many environments must be rehearsed before production, and how often change windows can be scheduled. A single-node Shuffle install with little execution history moves much faster than one with a large workflowexecution history, because the data copy and validation take longer. The supplied sources do not give a standard duration, so ask any partner to break its estimate into build, rehearsal, data move, validation and handover, and to state which of those depend on your data volume and approval cycle.

What does it cost, and which parts are one-time?

The main costs are labor, hosts, storage, and the time your own staff spend on approvals and testing. Building the cluster, configuring discovery and TLS, and moving data are one-time work. Hosting, storage growth, patching, OpenSearch minor upgrades and monitoring recur for as long as the cluster runs. OpenSearch is released under the Apache License, Version 2.0, and its FAQ does not describe a paid edition, so software licensing is not usually a line item. Ask for a fixed-scope quote that separates one-time work from any recurring support retainer and lists what the client provides.

Can our internal team build this without a partner?

Often yes, if you already run Linux servers, TLS certificates and OpenSearch or Elasticsearch. The work is not complex in isolation, but the risks are in details: every node must appear in Shuffle's connection URL, cluster names and discovery settings must match, and the encryption key used by Shuffle must be kept unchanged. Shuffle's configuration docs also note that losing or changing SHUFFLE_ENCRYPTION_MODIFIER breaks saved app authentications. Assess whether your team has someone who can rehearse the move and document the rollback before deciding.

What do we need to provide before the work starts?

You should prepare three hosts with sufficient CPU, memory and disk for OpenSearch, private network paths between them, and DNS or addresses that every node can reach. You will also need certificates or a certificate authority for node and client TLS, administrator credentials for the security configuration, and a rehearsal environment that mirrors production settings. Agree change windows in advance, and confirm who can approve a rollback. Confirm the host sizing requirements against the current OpenSearch installation documentation for your chosen version.

Can we move from a single OpenSearch node without downtime?

It depends on how Shuffle is configured and how much write activity happens during the move. The safe pattern is to rehearse the migration on a copy, take a snapshot, bring up the new cluster, update Shuffle's connection URL and validate indices, then cut over. Shuffle workflows that write executions during the switch need a plan, such as a short maintenance pause or a stopped runtime. Confirm the exact cutover steps against the Shuffle configuration docs for your release, and do not promise zero downtime until a rehearsal has proven it.

Do we always need exactly three OpenSearch nodes?

Three nodes are the common layout for a resilient cluster because they let the cluster keep a quorum of master-eligible nodes when one node fails. The Shuffle configuration docs recommend an OpenSearch cluster for high availability, but they do not prescribe a node count in the supplied sources. Smaller test or single-site installs may use one node, and larger deployments may need more capacity. Choose the count from your failure tolerance, data volume and hosting, and confirm the discovery and quorum settings for your OpenSearch version.

What should we ask for in a fixed-scope quote?

Ask for a written scope that names the OpenSearch version, the number of nodes, the hosts and operating system, the TLS and credential approach, and the exact Shuffle settings that change. The quote should list each deliverable: architecture, configuration, data migration, a rehearsal record, validation checks, rollback steps, handover documentation and any training. It should state what the client provides, what is excluded, and which post-go-live support is a separate retainer. Ask how the partner validates that every node is listed in the connection URL and that saved app credentials still work after the move.

Moving existing Shuffle data from a single node into the cluster

Choose the data movement method before you touch the cluster. The OpenSearch migration and upgrade docs, starting from Migrate or upgrade OpenSearch, separate in-place upgrades, snapshot restore, reindexing and migration tooling, and the right choice depends on whether you are changing version as well as topology. For a Shuffle node that stays on the same OpenSearch version, a snapshot taken from the single node and restored into the new cluster is usually the simplest path, because it moves indices as they are and avoids rewriting documents. Reindexing is the fallback when the version, index settings or mappings must change. Confirm the OpenSearch version on the existing node and the target cluster first, since the version gap determines which paths the OpenSearch documentation supports. Review Is Migration Assistant right for you? only when you move between major versions or from another Elasticsearch-family source at scale, and treat it as a project with its own planning rather than a shortcut.

Rehearse the whole move on a copy of the data before the production cutover. Restore the snapshot into a throwaway three-node cluster, point a non-production Shuffle backend at it using the full list of node URLs in the connection setting, and run the checks you will rely on later. Record how long the restore and the Shuffle startup take, so the production cutover window is based on measurements from your own environment. During cutover, stop writes by stopping the Shuffle backend, take a final snapshot, restore it, update the connection configuration, and start the backend again. Keep the original single node intact and read-only until verification passes, because it is your rollback point.

Verify the move with evidence, not a successful startup. Compare document counts for the key indices, including workflow, workflowexecution and the app index, between the source and the restored cluster, and spot-check recent executions in the Shuffle interface. Test the encrypted data specifically: saved app authentications and API keys are encrypted with the value of SHUFFLE_ENCRYPTION_MODIFIER, so run one action for each critical app that uses saved credentials. If an action fails with an authentication error, check that the modifier matches the value used on the original node before you change any credentials. Confirm which indices you expect to be absent or intentionally excluded, and write down the result so the cutover can be audited.

How DeployOpen scopes and delivers OpenSearch clustering for Shuffle

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For Clustering OpenSearch for Shuffle, the work runs as a fixed-scope engagement with scope, deliverables and timelines agreed in writing before any change is made to the cluster.

How we scope

  • We confirm the current single-node OpenSearch version and the Shuffle release it serves before any change.
  • The written scope lists each node, its role, discovery settings, TLS and credential handling, and the Shuffle connection URL update.
  • We agree on a data migration method, rollback point and acceptance checks, and record them in the written scope.

How we build

  • We build the three-node cluster in a non-production copy of your environment first, then test node failure and rejoin.
  • Each node's configuration is written and reviewed, covering cluster name, node names, discovery hosts and security settings.
  • We move the data from the single node, then point every Shuffle backend at all three nodes and verify executions still write and read.

How we hand over

  • You receive the configuration files, the Shuffle connection URL as deployed, and a record of each test and its result.
  • We provide a runbook covering node replacement, restart order, backups and the recovery steps your team should rehearse.
  • Your team walks through the handover and the failover test with us, so the cluster can be run without our involvement.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the build.
  • Upgrades follow the OpenSearch maintenance and end-of-life dates your team confirms against the official release schedule.
  • Before any OpenSearch or Shuffle upgrade, we retest cluster health, Shuffle connectivity and encryption key handling.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.