Shuffle scaling with Docker Swarm and Kubernetes

Shuffle scaling means deciding where Orborus, workers and app containers run, how many run at once, and how images reach each node. This page covers those decisions, the build order and how to verify failover.

On this page

Shuffle scaling starts with splitting server work from runtime work

Scaling Shuffle means adding runtime capacity while the backend, frontend and OpenSearch stay as the control plane. When a security team's playbooks queue up or fail under load, the usual cause is that workflow execution has outgrown the single host that was sized for the whole platform. The server side (the frontend, the Go backend API on port 5001 and the OpenSearch document database) holds the state, users and saved configuration. The runtime side is where workflows actually run, so that is the part you add servers to. Shuffle documents distributed Docker Swarm and Kubernetes with Helm charts as deployment architectures for this split, and the Shuffle architecture docs describe the component roles in detail.

The mechanics explain why this is harder than it looks. Orborus polls the backend for jobs, starts a worker for each workflow execution, and the worker starts the app containers that perform each action. Every extra node therefore needs the right images, the right placement and a route back to the backend, and a container scheduled onto the wrong host can fail in ways that look like app errors. Image pulls also happen on each node that runs an app, so registry access and caching affect how quickly a new runtime becomes useful. Confirm your registry topology and pull behavior with a test workflow on each node before you rely on it for incident response.

The harder problems are shared state and failover. Workers depend on the backend and OpenSearch for execution records, so a runtime that cannot reach them stalls even if it has spare capacity. Orborus is also a single point of failure unless you run more than one node, which the Shuffle configuration docs recommend for high availability. Before you size anything, ask your implementation partner or Shuffle to walk through which components must be shared, which can be duplicated and what happens to in-flight executions when a runtime node disappears. Those answers shape the Swarm or Kubernetes design more than any individual setting.

Which Shuffle components move when you scale execution

Scaling Shuffle is less about adding one bigger server and more about deciding where each component runs. The frontend, backend, database, runtime and containers each respond differently when spread across several hosts, and the choices you make for one usually constrain the others.

Frontend

The web interface that users and webhook-driven workflows reach first. Shuffle's high availability guidance says to scale the frontend across all servers, so a single frontend host is no longer a single point of failure. Check that load balancing, TLS termination and session handling behave the same on every node before you rely on it.

Go backend API on port 5001

The backend API that stores workflows, serves the frontend and hands jobs to Orborus. When you run several backends, they must agree on shared state, so the guidance pairs them with NFS for shared files. Confirm that port 5001 is reachable between nodes and that only the intended sources can reach it.

Architecture docs

OpenSearch document database

The store for workflows, execution records and encrypted app credentials. A single OpenSearch node becomes the weakest link once several backends and workers write to it. The configuration guidance recommends an OpenSearch cluster, so plan node count, storage and snapshots before adding execution capacity.

Configuration docs

Orborus runtime nodes

Orborus polls the backend for jobs and starts a worker for each workflow execution. Running more than one Orborus node means workflows keep running if one fails, and it spreads execution load across hosts. Each node needs a route to the backend and a container runtime it can control, so verify both on every server you add.

Worker containers

Each workflow execution starts a worker container that coordinates its actions. Worker placement determines which host carries each run, so concurrency limits set at the Orborus level directly shape how many workers a host can hold at once. Size hosts for peak parallel executions, not average daily volume.

App containers and shared cache

Each app action runs as a versioned Docker container, and the configuration guidance lists Memcached as an optional shared cache. App containers pull images from wherever your nodes can reach them, so an unreachable or slow registry stalls runs on some hosts but not others. Confirm registry access and image versions on every node.

Apps docs

How the backend, Orborus, workers and app containers connect

The flow starts at the frontend and backend API on the control plane, which store workflow and execution state in OpenSearch. Orborus nodes on the runtime side poll the backend for jobs, and each workflow execution starts a worker, which in turn starts app containers. Container images reach every runtime node through a shared registry. Check that the trust boundary matches your network design, and that every runtime node can reach the backend and pull the images it needs.

Control plane and runtime nodes, with the trust boundary between them.

Swarm or Kubernetes for Shuffle runtime placement

This table compares a single Compose host, Docker Swarm, and Kubernetes with Helm charts, plus the choice between co-locating Orborus with the backend and running it in a separate runtime location. Read each row as the operational cost you take on, and use the last row to decide what to confirm in the Shuffle docs before you commit.

OptionFits whenOperational cost it addsConfirm before choosing
Single Compose host that grows laterSmall team, one server, low app-run volume, and a path to scale that does not need a rebuildOne host is a single point of failure, and moving later means re-planning storage, networking and Orborus placementWhich Compose settings carry over to Swarm or Helm, and how the docs describe moving the backend and OpenSearch
Docker SwarmSeveral servers already run Docker, and the team wants multi-node scheduling without learning KubernetesManager and worker node management, overlay networking, and placement rules for backends, frontends and Orborus nodesThe Swarm deployment steps in the architecture docs, and how worker and app containers are placed across nodes
Kubernetes with Helm chartsThe organization already operates clusters, and platform engineering owns upgrades, registries and failoverCluster upgrades, Helm chart version management, ingress and storage classes, and ownership of pod failoverThe chart version matching your Shuffle release, and the values that set Orborus replicas and worker concurrency
Orborus on the same cluster as the backendRuntime capacity sits next to the backend and no apps must reach private networks from elsewhereBackend and workers share nodes, so a capacity spike in app containers can slow the control planeWhether the docs advise separate resource limits for workers and the backend on shared nodes
Orborus in a separate runtime locationApps must reach internal SIEM, EDR or directory services from a different network zone, or capacity must be isolatedA second environment to patch, monitor and keep on a matching release, plus connectivity and registry access from that locationWhether the hybrid setup needs inbound firewall ports, and how the local Orborus connects back to the backend
Registry access for app imagesAny option where workers pull versioned app containers at run timePull credentials, a private registry or mirror to maintain, and image sync across every node that runs workersThe image source and tag settings in the configuration docs, and whether nodes can pull without internet access
Failover ownership for OrborusWorkflows must keep running if one runtime node failsSomeone must run at least two Orborus nodes and test a node loss, and own that recoveryHow the high availability guidance expects multiple Orborus nodes to be deployed and monitored

How to scale Shuffle workers across Swarm nodes

This sequence takes a Shuffle deployment from a single runtime to several Orborus nodes and Swarm servers, with shared image pulls, controlled concurrency and a test workflow that proves work lands on the hosts you expect. Each step ends with a check you can repeat before moving on.

  1. Confirm architecture and image tags

    Decide whether the deployment is distributed Docker Swarm, the hybrid model with a local Orborus, or Kubernetes with Helm charts, since the steps below assume Swarm. Pin the frontend, backend and Orborus images to one release. Use the latest Docker tag for stable work and the nightly tag only for experimental changes, as the release guidance describes. Your platform team confirms the exact tag names in the configuration docs. Done when every node's planned image tag is written down and matches the others.

  2. Prepare OpenSearch as a cluster

    Move the document database from a single node to an OpenSearch cluster before adding runtime capacity, because workflow and execution records are written there. The platform or data team sizes the nodes, sets the cluster name and discovery settings, and confirms the cluster status is green on every member. Check the high availability guidance in the configuration docs for the expected layout. Done when a cluster health query reports the expected node count and all nodes join.

  3. Place more than one Orborus node

    Deploy Orborus on at least two Swarm nodes so that if one runtime fails, workflows keep running on the other. Each Orborus polls the backend for jobs and starts a worker per workflow execution, so the nodes must reach the backend API on port 5001 and share the same organization credentials. Label the nodes so you know which host runs which worker. Done when docker node ls shows the intended nodes as ready and each Orborus reports as connected in the platform.

  4. Configure a shared registry and pull policy

    Push the app images your workflows use to a registry every Swarm node can reach, and set the pull behavior so each node fetches the same versioned tag. Mismatched or missing app images are a common cause of workers failing on only some hosts. Confirm the registry and pull settings keys in the configuration docs before editing any stack file. Done when a manual docker pull of each app image succeeds on every node.

  5. Set concurrency and placement limits

    Set how many executions each Orborus runs at once and constrain where app containers may start, so heavy integrations do not starve the backend or OpenSearch on shared hosts. Record the concurrency and placement values per node and tie them to the capacity you planned in the previous steps. Keep the settings in version control so changes are reviewed. Done when the configured values appear in the running service environment on each node.

  6. Add Memcached and NFS for shared files

    Where several backends run, add Memcached as a shared cache and NFS for files that must be visible to every backend. Mount the NFS path on each backend host with the same options and confirm write access from each one. The configuration docs describe which paths and keys these components use. Done when a file written from one backend can be read from every other backend and a cache value set on one node is returned by the others.

  7. Run a test workflow across nodes

    Build a simple test workflow with a few actions that use a versioned app, then run it several times while watching which host starts each worker. Repeat with one Orborus stopped to confirm executions move to the remaining node. Your team should record the run IDs, host names and results. Done when each run's worker appears on the expected host, all runs complete, and the failover run finishes without manual intervention.

How Swarm, Kubernetes and single-node setups differ for scaling

Docker Compose on one host is the usual starting point. The frontend, backend, OpenSearch and Orborus share a single Docker engine, so every worker and app container runs on the same machine. There is no placement decision to make, and setup is the smallest of the three models.

  • Orborus startup: Orborus runs next to the rest of the stack on the same host and polls the backend for jobs.
  • Image pulls: each app image is pulled to the host's local Docker cache the first time an app runs, then reused by later executions.
  • Failed node replacement: there is no second host to take over. Recovery means rebuilding the host and restoring OpenSearch data from backups, so confirm that restore procedure before you depend on it.
  • Team ownership: host patching, the Docker engine, OpenSearch backups and safe storage of the SHUFFLE_ENCRYPTION_MODIFIER secret all sit with your team.

Before you choose this model for production, check whether one host can carry the expected number of concurrent workflows and whether a single point of failure is acceptable for the processes it runs.

Concurrency settings, registries and image caching in practice

Concurrency is the setting that determines how much load each node carries, so plan it together with placement. Every workflow execution causes Orborus to start a worker, and the worker starts the app containers that the workflow calls. More concurrent executions therefore mean more worker and app containers competing for CPU, memory and image pulls on each node in a Docker Swarm or Kubernetes cluster. The concurrency keys that control how many executions run at once are documented in the Shuffle configuration docs. Confirm the exact key names and their defaults against the release you run, because they change between versions. Then measure in a test environment: run your heaviest real workflows at the planned volume, and watch per-node CPU, memory and pull times before you size production nodes or raise limits.

Registry choices affect both reliability and repeatability. Shuffle apps run as versioned Docker containers, so the image tag is part of the behavior you approve. Pulling the same app version on every node matters: if one node holds a different build of an app, the same workflow can behave differently depending on where the worker lands. Pin app image versions explicitly and record them with the workflow they serve. For the platform images, the Shuffle docs recommend the latest Docker tag for stable releases and the nightly tag only for experimental changes, so keep production on pinned, tested tags rather than moving targets. Decide whether nodes pull from public registries directly or from a private registry mirror inside your network. A mirror reduces pull time at scale, keeps egress predictable and lets you stage approved images, but it adds a component you must patch and back up.

Caching follows the same logic. Pre-pulling approved app images to every runtime node before a change window avoids a burst of pulls when a busy workflow starts many containers at once. Confirm with your platform team how image garbage collection and disk limits are set on each node, because a full disk stops new app containers from starting. Ask Shuffle and your cluster vendor to confirm how image caching is configured in your chosen mode, and keep a written list of pinned app versions per runtime location so an upgrade or node rebuild restores the same set.

Securing scaled runtime nodes and the encryption secret

Scaling Shuffle adds more backends, Orborus nodes and app hosts, and each one widens the attack surface. The controls below connect because the encryption secret, registry trust, container host access and API keys all decide whether a scaled runtime can be trusted with your integration credentials.

Protect the encryption secret everywhere

Every backend and Orborus node must share the same SHUFFLE_ENCRYPTION_MODIFIER value, because saved app credentials and API keys in OpenSearch are encrypted with AES-256 using it. Losing or changing the value breaks all saved app authentications. Confirm where the secret is stored, who can read it, how it is injected into each container, and that a tested backup exists before you add nodes.

Configuration docs

Pin and verify registry pulls

Apps run as versioned Docker containers, so every Swarm or Kubernetes node pulls images from a registry you choose. Use a private registry you control, pin image tags to specific versions rather than floating tags, and confirm that nodes only pull from approved sources. Keep registry credentials in the orchestrator's secret store, scoped to read-only pull access, and rotate them on a schedule your team can prove.

Limit Docker socket access on runtime nodes

Orborus starts worker and app containers, which requires access to the container runtime on each node. Access to the Docker socket is effectively root on that host, so treat runtime nodes as privileged. Restrict who can log in to them, keep them off general-purpose networks, and review whether any container mounts the socket. Ask your team to document the exact privileges Orborus needs in your environment.

Control network paths to OpenSearch

Backends, Orborus nodes and app hosts all talk to the OpenSearch cluster that holds workflows, execution data and encrypted credentials. Allow only the ports and source addresses each component needs, enable TLS and authentication on the cluster, and keep it off public interfaces. Confirm node-to-node traffic paths in a diagram before adding placements in new subnets.

Architecture docs

Issue least-privilege runtime API keys

Integrations and runtime components authenticate with API keys. Give each workflow or integration its own key with only the permissions it uses, and avoid sharing an administrator key across nodes. Record which key belongs to which workflow, set an expiry or rotation process, and revoke keys when a workflow is retired so a scaled environment does not accumulate unused credentials.

Restrict who changes placement and concurrency

Placement and concurrency settings decide which nodes run which workflows and how many executions run at once. A change can move sensitive workflows onto a less protected host or overload the cluster. Limit who can edit these settings, require a second reviewer for changes, and log each change with its reason. Confirm how your Shuffle edition and deployment method record configuration changes before you rely on that log.

What drives scaling effort and cost

This table compares the main factors that change how much work a Shuffle scaling project takes and who pays for it. Read each row as a lever: the middle column shows what pushes effort up, and the last column shows what keeps it manageable. The main takeaway is that runtime location count, OpenSearch sizing and registry design usually decide most of the scope before any playbook is touched.

DriverWhat raises effort or costWhat keeps it down and who pays
Runtime locationsEach extra Orborus location in a separate network adds connectivity, credential and monitoring work across Swarm or Kubernetes clustersFewer, well-defined locations. Internal team time for network approvals, partner scope if the design is built for you
Concurrent executionsHigher parallel workflow runs need more worker capacity, more app containers starting at once and tighter concurrency tuningSet limits from observed peaks and test under load. Infrastructure cost recurs; tuning is one-time partner or internal effort
Number and size of appsMany apps, large images or apps with heavy dependencies increase pull time, storage use and version trackingPin app versions, prune unused apps and keep images lean. Internal team time for app review; recurring as apps update
Registry setupPrivate registries, air-gapped mirroring, certificate trust and pull credentials add build and maintenance steps on every nodeUse one internal registry with a clear image sync process. Infrastructure is recurring; initial configuration is one-time
OpenSearch cluster sizingA high-availability cluster, larger data volumes and retention requirements increase node count, storage and tuning effortConfirm retention needs early and size from workload data. Infrastructure recurs; the sizing study is one-time
Shared storage and cacheSeveral backends need shared files through NFS and optional Memcached adds another service to deploy, secure and monitorKeep shared storage on a supported design. Infrastructure is recurring; setup is one-time, drawn from internal or partner time
Integrations needing internal reachApps that call internal SIEM, EDR or directory services need routing, firewall rules and service accounts in each locationLimit internal targets per location and use least-privilege API keys. Internal security and network team time, often the longest approval path
Environments (test, staging, production)Each environment repeats the cluster, registry and runtime setup, and every change must be promoted and testedUse the same deployment definitions across environments. Infrastructure recurs per environment; configuration is partly one-time
Compliance evidence requirementsAssessors may ask for architecture diagrams, access records, change history and backup evidence for every runtime locationCollect evidence as the build proceeds. Internal compliance team time; DeployOpen prepares evidence but auditors issue any opinion

How to prove scaled workflows keep running when a node fails

Proving that a scaled Shuffle deployment keeps running workflows means testing the failure paths on purpose, not just confirming that the stack starts. Run a load of representative workflows across all nodes first, then check that each execution lands on the worker you expect. Record which Orborus node picked up each job, which worker it started, and which app containers were launched. In Docker Swarm mode, confirm placement with the service and task listings for the backend, frontend and Orborus. In Kubernetes mode, confirm it with the pod placement for the same components. Use a mix of short and long-running workflows, since a node failure during a long execution is the harder case.

Next, stop one Orborus node while jobs are in flight and confirm that new and queued jobs continue on another Orborus node. Then restart a backend instance and check that the frontend reconnects and that workflow state, saved executions and app authentications are still intact. Because saved app credentials are encrypted with the SHUFFLE_ENCRYPTION_MODIFIER value, confirm that a restarted backend reads them correctly with the same value. Also test a missing image: reference an app image tag that does not exist in your registry and confirm the execution fails with a clear, visible error rather than disappearing. Confirm the exact failure behavior in your Shuffle version, since the message and status fields can differ between releases.

For the handover, record the node inventory with roles and addresses, the exact image tags for the frontend, backend, Orborus and each app, the concurrency settings used during testing, and the results of every failover run with timestamps and observed behavior. Keep the monitoring you used during the tests, such as alerts on Orborus node health, failed or stalled executions, backend availability and OpenSearch cluster status, and agree who responds to each. Ask your Shuffle support contact, or check the Shuffle configuration docs, which settings control concurrency and high availability in your version. Full recovery and restore testing is covered in the separate recovery testing topic.

Common questions about scaling Shuffle on Swarm or Kubernetes

Can our internal team scale Shuffle across servers without a partner?

Yes, many teams can, provided they already run container platforms and have someone who owns OpenSearch and the registry. Shuffle documents distributed Docker Swarm and Kubernetes with Helm charts as supported deployment architectures, so the steps are known. The harder part is the surrounding work: sizing the runtime, testing failover, and keeping app images current after each release. Ask whether your team has capacity for a staged test environment before production cutover, and whether anyone will own the setup after the first deployment. The Shuffle configuration docs are the right starting point for that assessment.

What does the work need from our team before it starts?

Plan for four inputs: access, a test environment, and clear ownership of OpenSearch and the image registry. Access means accounts on the servers or cluster where backends, frontends and Orborus will run, plus the network paths your apps need to reach internal tools. A non-production copy lets you test concurrency changes and Orborus restarts without touching live playbooks. Someone must own OpenSearch, because the backend stores workflow data there, and someone must own the registry, because Orborus starts worker and app containers from images that must be pulled reliably. Also confirm who holds the value of SHUFFLE_ENCRYPTION_MODIFIER, since changing it breaks saved app authentications.

How does the cost split between infrastructure, implementation and upkeep?

Cost falls into three groups: infrastructure you run, one-time implementation work, and recurring upkeep. Infrastructure includes servers or cluster capacity for the backend, frontend, OpenSearch, optional Memcached and NFS, and the Orborus nodes that start worker containers. Implementation covers the initial deployment, placement and concurrency settings, registry setup and failover testing. Upkeep covers version alignment, app updates and monitoring. Licensing is separate: Shuffle's pricing article says the open-source edition includes all features, and paid tiers are metered on app runs. Ask any partner for a quote that lists each group separately, with the assumptions behind the capacity estimate.

Is Kubernetes required to scale Shuffle beyond one server?

No. Shuffle documents four architectures: a single server with Docker Compose, distributed Docker Swarm, a hybrid with a local Orborus, and Kubernetes with Helm charts. Swarm is a valid choice for distributed execution, and Kubernetes makes sense when your organization already operates clusters with the skills and tooling to run them. The decision depends on what your platform team supports, how you handle ingress and storage, and how you plan to upgrade. Whichever you pick, the high availability guidance still applies: an OpenSearch cluster, backends and frontends across servers, and more than one Orborus node.

How do we test Orborus failover before relying on it?

Test it by stopping one Orborus node while workflows are running, then confirm that executions continue or recover on the remaining node. Shuffle's configuration docs recommend more than one Orborus node so workflows keep running if one fails, so the test checks that this holds in your environment. Record which workflows were in flight, how long each one took to resume, and whether any app container was left orphaned. Repeat the test after changing concurrency settings, after moving placement rules, and after upgrading images. Keep the results with the change record so the next engineer can repeat the same steps.

How do upgrades change the images our workers and apps run?

An upgrade changes the frontend, backend, Orborus and app images, and these must stay aligned with each other. Shuffle publishes releases on GitHub, and its docs recommend the latest Docker tag for stable use and the nightly tag only for experimental changes. Pin the tags you deploy so a pull does not change production unexpectedly. Apps run as versioned Docker containers, so after a platform upgrade you may also need to rebuild or update app images. Stage the new tags in a test environment, check that each app still runs, and then roll the change through Orborus nodes one at a time. Confirm the release notes for the version you select before you schedule the window.

When is it worth bringing in a partner for Shuffle scaling?

A partner is worth considering when the scaling work competes with delivery, or when the setup must pass a compliance or security review on a fixed timeline. Common triggers include no spare platform engineer for OpenSearch, a need for tested failover before a production date, or several runtime locations including private networks. DeployOpen implements Shuffle inside your own infrastructure, documents the configuration, and tests it, but it does not issue audit reports or certifications. Most engagements are fixed-scope, with scope and deliverables agreed in writing before work starts, and ongoing support is available as a retainer. Ask for a written scope that lists the architecture, the test plan and the handover documents.

How DeployOpen scopes, builds and hands over Shuffle scaling

DeployOpen starts Shuffle scaling with a written scope that fixes the runtime layout, the Orborus placement and the registry plan before anything is changed. The work is then built in your own infrastructure, tested against your workflows and handed over with documentation your platform team can run.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • The scope lists which runtime locations, Orborus nodes and Swarm or Kubernetes clusters are in play.
  • Concurrency targets, worker and app container placement, and image registry choices are documented as scope items.

How we build

  • Orborus nodes and worker placement are configured to match the agreed concurrency and failure assumptions.
  • Image registry and caching setup is built inside your network so app containers pull from a source you control.
  • Test workflows run across each node to confirm jobs spread correctly and app containers start on the intended hosts.

How we hand over

  • Delivered documentation covers the deployed topology, Helm or Compose settings, and the reasons behind each concurrency value.
  • Runbooks describe how to add an Orborus node, rotate registry credentials and drain a server for maintenance.
  • Your team walks through the handover and the test results so operators can repeat the checks without DeployOpen.

How we support

  • Ongoing upgrades, runtime monitoring and continuous testing are available as retainers after handover.
  • Support scope and response expectations are set in the written agreement, so confirm them during the quote.
  • Shuffle version changes that affect Orborus or app images are reviewed against the agreed topology before rollout.

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.