Tuning Orborus concurrency and execution timeouts in Shuffle

Orborus concurrency, container cleanup and execution timeouts decide how many Shuffle workflows run at once. This page explains how to size them and read CPU and queue symptoms before adding servers.

On this page

Tuning Orborus concurrency in Shuffle before adding servers

Orborus concurrency and execution timeouts decide how many workflows one Shuffle runtime works on at the same time and how long each one may run before it is stopped. Tune them when a self-hosted runtime shows queued executions that wait a long time to start, or workflows that slow down as more run together. Those symptoms usually point to the runtime host before they point to the backend or OpenSearch, so check the runtime first.

The architecture docs describe the chain. Orborus polls the Shuffle backend for jobs, starts a worker for each workflow execution, and the worker starts the app containers that run each action. Every workflow therefore consumes capacity on the host where Orborus runs, in the form of a worker process and one or more app containers. When that host has no room left, new executions wait in the queue even though the backend and the database are healthy. Before changing any value, record the host's CPU, memory and container count during a busy period, and note which executions were slow and which were stuck.

Confirm the exact concurrency and timeout settings in the configuration docs for your Shuffle version, because the key names and defaults can change between releases. Check the release you are running against the Shuffle GitHub releases page before editing any Orborus environment variable. Raise concurrency in small steps, measure again, and keep a record of each change, so you can tell whether a new limit helped or only moved the bottleneck to the host. If the host is saturated at a level you cannot reach with the settings, the next step is adding runtime capacity, which the adjacent sections cover.

How a workflow execution moves through Orborus, workers and app containers

An execution starts when a trigger or a user run is queued on the Shuffle backend. Orborus on the runtime host polls that backend for jobs, then starts a worker for each execution, and the worker starts the app containers each action needs. Results return to OpenSearch. The runtime host is where CPU, memory and Docker capacity are consumed, so it is the boundary to check when executions queue or time out. Count workers and containers per host before adding servers.

Hand-offs from the backend queue to app containers and back to OpenSearch.

Which Orborus and execution settings to adjust, and when

This table compares the Orborus and execution settings you can change, the symptom each one addresses, and what raising or lowering it costs. Key names and defaults differ by release, so confirm them in the configuration docs for your version before editing. The main takeaway is to change one setting at a time and check queue and CPU behavior before adding servers.

Setting or behaviorSymptom it addressesTrade-off when raising or lowering
Concurrency limit per Orborus runtimeExecutions waiting in a queue while the host still has CPU and memory headroomRaising it adds load to the host and can slow every workflow on it. Lowering it protects the host but lengthens queues.
Workflow execution timeoutExecutions stuck in a running state, holding a concurrency slot for a long timeShorter timeouts free slots sooner but can cut off legitimate long lookups. Longer timeouts hide hung apps.
Container cleanup of finished workers and appsDisk filling up, leftover containers and slow starts on busy hostsFrequent cleanup frees resources but removes containers you may want for debugging. Capture logs before cleanup runs.
Job polling by OrborusDelay between a trigger firing and the worker startingShorter intervals add API calls to the backend. Longer intervals add start latency to every execution.
Number of Orborus runtimesQueues growing on one runtime while others sit idle or none is availableExtra runtimes spread load and survive a node loss, but each needs network access to the apps it runs.

How to baseline and tune a Shuffle runtime

This sequence gives you a measured baseline for one Orborus runtime, a single change at a time, and proof that the change improved throughput without leaving containers or executions stuck. Each step ends with a check you can record before moving on.

  1. Pin the Shuffle version before measuring

    Confirm the exact Shuffle version and Docker image tags running on the backend and on every Orborus host, and record them in your change log. Use a pinned release tag rather than the nightly tag for any runtime you intend to measure, since the Shuffle docs reserve nightly for experimental changes. Your team owns this step. It is done when every host reports the same version and the tag is written down, so later results can be attributed to your tuning and not to an upgrade.

  2. Record the baseline on the runtime host

    Capture CPU, memory, disk and container counts on the Orborus host during a normal working period and again during your known peak, using the monitoring you already run or host-level tools such as the Docker stats output. Note how many workflow executions are in progress and how long they wait before a worker starts. Confirm with the platform owner which peak window is representative. The baseline is complete when you have at least one normal and one peak record with timestamps, saved somewhere the whole team can compare against.

  3. Build a representative test workflow set

    Select a small set of workflows that reflect real load: one that calls a fast internal API, one that calls a slow external service, one with a loop over many items, and one that is expected to hit an app timeout. Keep the inputs fixed so runs are comparable. Mark any workflow that starts real actions in downstream tools as a test workflow that points at a non-production target. The check is that you can trigger each workflow on demand and that each one reaches a final status in the Shuffle UI.

  4. Change one concurrency or timeout setting

    Adjust a single setting in the Orborus configuration, such as the concurrency limit or an execution timeout, and write down the old value, the new value and the reason. Changing two settings at once makes it impossible to tell which one caused a result. Confirm the exact configuration key names against the current configuration documentation for your pinned version before editing, because key names and defaults can change between releases. The step is done when the change is recorded in your change log and reviewed by the person who owns the runtime.

  5. Restart Orborus and confirm it picks up the change

    Restart the Orborus service on the runtime host so the new value loads, then check the startup logs for the setting being read without errors. Confirm that the runtime appears as online in the Shuffle environment settings and that it accepts a test execution. If the restart leaves the host in a different state than before, such as orphaned containers from the previous process, record that as a finding before continuing.

  6. Verify container cleanup after runs

    After the test workflows finish, list the containers on the runtime host and confirm that finished app containers are removed by the cleanup behavior you configured. Check that no app container from a completed execution is still running and that disk usage is not growing run over run. If containers accumulate, stop tuning concurrency and investigate cleanup first, because more concurrent runs will only multiply the leftover containers. Record the container count before and after the test run as evidence.

  7. Confirm executions reach a final status

    Review each test execution in the Shuffle UI and confirm it reached a final status, either finished or a timeout or failure state you expected. Look for executions that stay in a running state after the timeout you configured has passed, since these point to a timeout setting or a worker that is not reporting back. Compare queue depth and time to start against the baseline from the normal and peak records. The step is complete when every test execution has a final state and the queue measurements are written next to the baseline.

  8. Decide whether to keep, revert or add capacity

    Compare the retest results with the baseline and decide, for this one setting, whether to keep the change, revert it, or move on to the next setting. If CPU stays low while queue depth keeps rising, the limit may be too conservative. If CPU and memory saturate with the change, revert it and consider adding a runtime instead of raising the limit further. Ask your Shuffle administrator to sign off on the decision and the final values, then repeat the sequence for the next setting.

Reading CPU and queue symptoms before adding a server

Before you add an Orborus node, confirm which component is actually the limit. Waiting executions do not automatically mean you need more runtime capacity. A queue that grows while host CPU stays low usually points at a configured ceiling, such as the concurrency setting on the Orborus node, rather than at hardware. Check the Orborus logs and the host metrics side by side over the same period: if workers are idle but new executions wait, the runtime is holding back work by design. Raising the limit is the first test, and it should be run in a non-production copy of your environment first, since every extra concurrent execution starts more app containers.

High host CPU with a full queue suggests a CPU-bound host, but it does not prove that adding a node is the fix. Look at which containers consume the CPU. If a few app containers dominate, the cost may come from one app's parsing, a large data transform in a workflow, or a retry loop, and a second Orborus node would only spread the same load. Long-running executions with low CPU suggest the opposite: the runtime is waiting on something. That is usually a slow app, an external API that rate-limits or times out, or a backend or OpenSearch call that is slow to respond. Check the execution timing for the slow action, then test that dependency directly from the runtime host. Your own environment will show which of these applies, so treat each explanation as a hypothesis until you have measured it.

A second Orborus node helps only when the first node is saturated and you also want the workflows to keep running if one node fails. If the first node is not at its limit, a second node adds cost and operational work without raising throughput, and it may not reduce queue wait at all. If you do add one, confirm that both nodes connect to the same backend and that the shared services they depend on, including OpenSearch and any Memcached, can absorb the extra load. The Shuffle configuration docs describe the high availability layout, which is the right reference for deciding between a throughput change and a redundancy change.

How tuning differs by deployment architecture

On a single server deployed with Docker Compose, the frontend, backend, OpenSearch and Orborus usually share one host. The runtime and the rest of the platform therefore compete for the same CPU, memory and disk, and concurrency is the main lever you control on that machine.

  • Shared host capacity: Orborus, its worker and every app container draw from the same resources as OpenSearch and the backend, so a burst of executions can slow the interface and the API.
  • Where concurrency is set: Concurrency is set in the Orborus configuration passed in through Compose. Confirm the exact setting name for your version in the Shuffle configuration docs.
  • No second runtime: With one Orborus node there is no failover. If it stops, queued workflows wait until it recovers.
  • Local container cleanup: App containers are created by the Docker engine on this host, so image pulls and leftover containers consume local disk that needs regular watching.
  • Scaling means moving up: Higher limits usually mean a larger host or moving the runtime to another machine, which is the first step toward a multi-server layout.

Before changing concurrency, check host CPU, memory and disk under peak execution load, and confirm the OpenSearch heap is sized for the same machine.

Security and operational risks of raising concurrency

Raising Orborus concurrency multiplies the number of app containers, credentials and resource demands on a single runtime host. The four cards below cover the controls that matter most when you push concurrency up, and each one names a setting or check you can verify before and after the change.

Docker socket and container privilege

Orborus starts a worker for each workflow execution, and the worker starts app containers, so the runtime needs access to the Docker engine. Access to the Docker socket is effectively root on the host, so any container that can reach it can control the machine. Before raising concurrency, confirm which accounts and containers mount the socket, confirm that app containers do not run privileged, and review who can change the Compose or Swarm definition that grants that access. Ask your Shuffle deployment partner to document this in the runtime design.

Shuffle architecture docs

Host resource exhaustion

Each parallel execution consumes CPU, memory, disk for container images and temporary files, and network connections. On a shared host, a burst of executions can starve the database, the backend or unrelated services on the same machine. Set resource limits on the Orborus host and on the workflow containers, watch disk usage for leftover containers and images, and confirm that critical services have reserved capacity. Treat a rise in host load after a concurrency change as a failed change, not a tuning success.

Credential handling across parallel runs

Parallel workflows that share an app authentication or API key widen the blast radius of a leaked value, and log output from one execution can expose secrets used by another. Check that credentials are stored as Shuffle app authentications rather than typed into workflow variables, that workflow logs and error notifications do not print tokens, and that service accounts used by apps follow least privilege. Review which apps run most often, since their credentials are the first to be reused across concurrent executions.

Encryption modifier consistency

Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret. Every backend and Orborus node that reads those credentials must use the same value, and the docs warn that losing or changing it breaks all saved app authentications. When you add runtime nodes to raise concurrency, confirm the modifier is identical across all of them, keep it in your secrets manager with a tested backup, and never change it as part of a tuning exercise.

Shuffle configuration docs

Questions buyers ask about tuning Shuffle concurrency

What does tuning Orborus concurrency involve and who does it?

Tuning means setting how many workflow executions a Shuffle runtime runs at once, how long executions may run before they time out, and how finished app containers are cleaned up. The work is done by whoever owns the runtime hosts, usually a platform or security engineering team working with a partner who has run Shuffle under load. It starts with a baseline of current behavior, changes one setting at a time, and checks CPU, memory, queue depth and execution outcomes after each change. The exact setting names and their defaults should be confirmed in the Shuffle configuration docs for the version you run, since they can change between releases.

What drives the effort of tuning Shuffle concurrency up or down?

The main drivers are how many workflows run, how many of them call apps that wait on slow external systems, and how many runtime locations you operate. Workflows that use loops or many parallel actions create more containers per execution, which raises host load quickly. The deployment model matters too: a single Docker Compose host is simpler to measure than a Swarm or Kubernetes layout with several Orborus nodes. Effort also rises when the host shares capacity with other services, when no historical metrics exist, or when the team needs to prove a change to an auditor. Effort falls when workflows are documented, metrics are retained and the test workload is representative.

Can an internal team tune Shuffle concurrency without a partner?

Yes, a team that already runs Linux container hosts and reads monitoring data can do this work, provided it has time to test and someone accountable for production changes. The tasks that often take the longest are building a realistic test workload, separating Shuffle load from other host load, and deciding acceptable timeout behavior with the workflow owners. Teams without container operations experience or without a staging copy of the runtime usually find it harder to avoid trial and error in production. A partner can provide the method, the test plan and a written findings report, while your team keeps ownership of the settings and the hosts.

How long does a Shuffle concurrency tuning cycle take?

The length depends on the environment, not on a fixed number of days. The main variables are the number of runtime hosts, whether a staging environment exists, how long a representative workload takes to run, how many workflows and apps are in scope, and how quickly change approvals move in your organization. A single host with clear metrics and a staging copy usually moves faster than a multi-location setup where each location needs its own baseline. Ask for the timeline in the written scope, and ask what assumptions it makes about environments, access and test windows.

What should we provide before a Shuffle tuning engagement starts?

Prepare the inputs that show how Shuffle is used today and how the hosts behave under that use. Useful items include:

  • Sample workflows, with the apps they call, their trigger types and any loops or parallel branches
  • Host metrics for CPU, memory, disk and network from the runtime hosts, covering busy periods as well as quiet ones
  • Execution history showing run counts, failures, timeouts and how long executions usually take
  • The deployment layout, Shuffle version, and a list of other services sharing the hosts
  • Named owners for workflows and for approving production changes

If you cannot export some of this data, say so at the start so the method can account for it.

Which costs recur after tuning and which are one-time?

The tuning project itself is one-time work, billed according to the written scope. Recurring costs come from the infrastructure and operations that follow: the hosts that run Orborus and app containers, the monitoring that shows whether the settings still hold, and the time your team spends reviewing metrics after workflows or app versions change. Shuffle's licensing is measured in app runs, as described in its pricing article, so confirm with Shuffle or your reseller how your plan counts runs before assuming any change in usage. When requesting a quote, ask which items are one-time, which are retained, and what a follow-up review would cost.

How do we know whether to tune concurrency or add Orborus servers?

Tune first when a single host shows high CPU or memory while queued workflows wait, and the host has headroom that the settings can use safely. Add a runtime when the same host stays saturated at reasonable settings, when workflows must run in another network zone, or when you need redundancy. Shuffle's architecture docs describe Orborus as the component that polls for jobs and starts workers, so adding a node changes where work runs as well as how much. The configuration docs recommend more than one Orborus node so workflows keep running if one fails, which means the decision is not only about throughput. Confirm your queue and CPU readings against a baseline before deciding.

How DeployOpen scopes and supports Shuffle runtime tuning

DeployOpen scopes runtime tuning as a fixed-scope engagement: before any work starts, the written scope names the Orborus nodes and runtime locations involved, the concurrency and execution timeout settings to be reviewed, the monitoring evidence to be collected and the deliverables the client receives. The scope also records what is out of bounds, such as server additions or OpenSearch changes that belong to a separate piece of work. A quote follows from that written scope, so the decision to proceed rests on a document both teams have read rather than on an open-ended estimate. Ask for the scope to list each setting by name and state how the before and after behavior will be measured.

The tuning happens inside your own infrastructure. DeployOpen works in your Shuffle environment, under your cloud accounts, data centers or air-gapped network, using the change control and access paths your security team already approves. Your team keeps ownership of the runtime, the secrets it holds and the decisions about capacity. Before changing any value, confirm who approves production changes, which test environment is available for load validation and whether the Orborus host can be restarted during an agreed window. These answers determine how much of the work can be done without disrupting active playbooks.

Ongoing support is available as a retainer for teams that expect workload to grow. A retainer can cover periodic reviews of queue depth and container cleanup, retesting after a Shuffle upgrade, and adjustments when new playbooks change execution patterns. Because the retainer is ongoing, ask what it includes, how review requests are raised and what response expectations are written into it. DeployOpen does not publish a price list, so the fee for either the one-time tuning or a retainer comes only from a quote based on the agreed scope.

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.