Shuffle execution data retention and index rollover: when teams need it
Retention and index rollover decide how much Shuffle execution history OpenSearch keeps and how that history is split across indexes. A team needs to look at them when workflow executions have piled up, and searches, dashboards or the Shuffle UI have slowed. The signal to act on is growth: if the number of stored executions rises every week and nobody has set a retention or rollover policy, the cluster will keep getting heavier until someone intervenes. The Shuffle docs describe OpenSearch as the document database behind the backend, so index health affects the whole platform, not just reporting. A slow index can slow saved workflows, execution views and the backend that reads them.
Before changing anything, confirm the current state. The researched facts for this page do not state Shuffle's default rollover conditions, so do not assume them. Check the Shuffle configuration docs at Shuffle configuration docs for the documented defaults for your release, then list the indexes that exist in your cluster, their document counts and their sizes. Note which index holds workflowexecution documents and whether it is one large index or several backing indexes. Those numbers tell you whether the problem is document volume, shard sizing or cluster resources, and each one points to a different fix.
Plan for three decisions before tuning. First, decide how long execution history must remain searchable, because an incident review, an audit request or a reporting obligation may set that period, and your compliance owner should confirm it. Second, decide who may delete old backing indexes, and rehearse the deletion on a copy because removing an index removes its history permanently. Third, decide whether the cluster has enough headroom to reindex workflowexecution without disrupting live workflows. Reindexing and deletion both add load, so schedule them in a window and confirm the OpenSearch version and cluster health first, using the OpenSearch releases page to check your version's maintenance status.
How execution records reach rollover and deletion
The diagram starts with Orborus polling the Shuffle backend for jobs. Workers run the workflow and return results to the Go backend, which writes workflowexecution records to OpenSearch through an alias. Current and older backing indexes sit behind that alias. Two separate paths follow: deleting old backing indexes, and reindexing workflowexecution into a new index. The rollover trigger is shown as a dashed step to confirm in the Shuffle configuration docs before you rely on it.
Simplified view of execution records, rollover and the two maintenance paths.
Retention and rollover options and when each fits
This table compares the five levers for keeping Shuffle execution data in OpenSearch manageable: default rollover, custom rollover, custom index settings, scheduled deletion and reindexing. Read each row against your execution volume and your retention obligations, and treat any change as something to prove on a test cluster first. The main takeaway is that deleting or reindexing workflowexecution data is the step most likely to remove history you need.
| Option | What it changes | When it fits | Main risk and what to confirm |
|---|---|---|---|
| Default rollover behavior | Shuffle creates new backing indexes as the current one grows, so searches work against smaller indexes over time. | Most installs that have not measured execution volume or set a retention period yet. | Rollover alone does not delete data. Confirm in your Shuffle version which rollover conditions apply and how they appear in OpenSearch. |
| Custom rollover conditions | Changes when a new backing index is started, based on document count, size or age you set. | Clusters with heavy execution volume where the default timing leaves indexes too large or too many small ones. | Thresholds set too low create many small indexes and extra shard overhead. Test the chosen values on a copy of your data and check shard counts. |
| Custom index settings | Changes shard count, replica count, refresh interval or mappings for execution indexes. | Teams with a clustered OpenSearch that have sized shards against measured data volume. | Shard count cannot be simply changed on an existing index, and mapping changes may need reindexing. Confirm each setting against the OpenSearch tuning guidance in a test cluster. |
| Scheduled deletion of old backing indexes | Removes whole backing indexes older than your retention period, freeing disk and search load. | Organizations with a written retention period for execution history and a tested backup of anything they must keep. | Deleted indexes cannot be recovered without a snapshot. Confirm the retention period with your compliance owner and restore a snapshot in a test cluster before enabling deletion. |
| Reindexing workflowexecution | Copies existing execution data into a new index with different settings, so the old index can be replaced. | Planned migrations, such as moving to a new shard layout or fixing mappings after an upgrade. | Reindexing a large index consumes cluster resources and can slow live executions. Confirm the source and destination counts match and schedule it outside peak hours. |
| Backups before any change | Creates a snapshot of execution indexes you can restore if a rollover, deletion or reindex goes wrong. | Every environment, and required before deletion or reindexing. | Snapshots need a configured repository and storage. Confirm the repository location, retention of snapshots and that a restore has been tested. |
What makes execution history slow down OpenSearch
Shuffle writes every workflow execution into OpenSearch, so history grows with each run. The four to six causes below pull on the same cluster from different sides, which is why a slow Shuffle UI often traces back to storage, memory or query shape rather than to Shuffle itself. Start with the symptom you see, then run the first check before changing any setting. The exact thresholds for your cluster must be measured against OpenSearch's own tuning guidance, not taken from this page.
Growing backing indexes
Without rollover, executions accumulate in one index that keeps getting larger. The symptom is a Shuffle workflow history page that takes longer to open each month, even when the number of active workflows has not changed. The first check is the index list in OpenSearch Dashboards or the _cat/indices API, sorted by size and document count, to see which index holds most of the executions and whether a new backing index was ever created. Confirm your rollover policy in the Shuffle configuration docs before editing anything.
Too many small shards
Each index is split into shards, and every shard carries fixed overhead in cluster state and memory. Many small indexes created by frequent rollovers or per-day patterns can leave a cluster with thousands of tiny shards. The symptom is slow cluster-wide responses and a shard count that climbs faster than the stored data. Check the shard count and average shard size with _cat/shards and _cluster/health, then compare them with the shard sizing guidance in OpenSearch's tuning documentation.
Heap pressure on a single node
OpenSearch runs on the JVM, and heavy aggregations over execution data consume heap quickly. On a single-node install, one busy node has no peer to share the work, so garbage collection pauses show up as timeouts in the Shuffle UI. The symptom is intermittent failures when loading large execution lists, and warnings in the OpenSearch logs about long garbage collection. First check the heap usage and GC statistics with the _nodes/stats API and look for sustained high usage during Shuffle activity.
Slow or full disks
Execution documents include action results and logs, so disk usage grows faster than workflow counts suggest. When a node passes its disk watermarks, OpenSearch stops allocating new shards to it, and writes can be rejected. The symptom is failing or delayed execution saves in Shuffle, and yellow or red cluster status after storage fills. Check free disk and watermark status with _cat/allocation, and confirm that the storage behind the data path has the write throughput your execution rate needs.
Long searches over unbounded date ranges
A Shuffle user who searches execution history without a time range forces OpenSearch to scan every backing index. This costs more as retention grows, and it competes with normal workflow writes. The symptom is a history search that returns after a long pause or times out, while the same search over the last day responds quickly. Ask which filters the search used, then test the same query with a bounded time window in Dashboards to confirm the scan width is the cause.
Reindexing workflowexecution: when a rebuild is worth the risk
A rebuild into a new index is worth the risk only when the change you need cannot be made in place, or when a version move changes what the existing index can hold. Rollover adjustments and retention deletes keep the current index working, so reach for reindexing only after those options are ruled out. Typical triggers include index settings that OpenSearch does not allow you to change on an open index, mapping changes that would require a field type to change, and an upgrade that leaves your indices in a state you want to clean up. Before you start, confirm with the Shuffle configuration docs whether the backend reads workflowexecution through a fixed index name or an alias, because that decides whether you can switch reads and writes by repointing an alias or whether you must change backend configuration during the cutover.
The sequence is simple to describe and easy to get wrong. First, create the target index with the settings you want, and keep its name or alias aligned with what the backend expects. Second, copy the documents from the source into the target and let the copy finish before you judge it. Third, verify the result: compare document counts between source and target, then open a sample of recent and old executions in the Shuffle interface and confirm their steps, results and timestamps match. Only after those checks pass should you switch reads and writes to the new index. Keep the source index in place until you have run workflows against the target for a while, so that rolling back is a pointer change rather than a second copy.
Encrypted app credentials are stored in OpenSearch separately from execution documents, so a reindex of workflowexecution does not move them, and they must still decrypt after the move. The Shuffle configuration docs state that the SHUFFLE_ENCRYPTION_MODIFIER secret encrypts saved app credentials and API keys, and that changing or losing it breaks every saved app authentication. Keep that value byte-for-byte identical through the entire project, record where it is stored, and test one saved app authentication after cutover. Treat the reindex as a change window with a written rollback step, and plan it against a restored copy of your data first.
Set up retention and rollover in a staging copy first
This sequence tests a retention and rollover change against a representative copy of Shuffle execution data before it touches production, so the team knows the change works, how searches behave and how to reverse it.
Confirm Shuffle and OpenSearch versions
The platform engineer records the Shuffle backend image tag and the OpenSearch version running in production, then compares both against the release pages before any change. Check the Shuffle releases on GitHub and the OpenSearch releases page to confirm the version is still under maintenance and whether a newer minor release is needed. If a version change is part of this work, confirm the upgrade path first: OpenSearch supports rolling upgrades from Elasticsearch-compatible versions in the supported range, so confirm your starting version falls inside that range before planning the upgrade. Done means you have a written record of both versions and a decision on whether an upgrade is in scope for this change.
Snapshot the production cluster
The OpenSearch administrator registers a snapshot repository on storage the cluster cannot delete from during the change, then takes a snapshot of the execution indices and the cluster state. Confirm the snapshot completes with a success state and that the listed indices match the workflowexecution and related backing indices you expect. Restore a single small index into a scratch name to prove the snapshot is usable. Done means you have a snapshot name, a restore test result and a note of where the repository lives.
Copy current settings and index templates
The administrator exports the current cluster settings, index templates, index state management policies, and the index settings of the live execution indices to version-controlled files. Store the files alongside the snapshot record. Record the existing rollover conditions and any custom aliases so the rollback has a precise target. Done means each exported file is readable and a diff against a fresh export of the same objects shows no differences, which proves the copy is complete.
Build a staging cluster with representative data
The platform team creates a staging OpenSearch cluster on the same major and minor version as production and restores a snapshot of production execution data into it, or loads a sampled set that includes both recent and old executions. Keep the Shuffle backend pointed at this staging OpenSearch. Confirm the document counts per index match production within an agreed tolerance and that the oldest and newest execution records are present. Done means staging holds data shaped like production, which you verify with counts and sample record checks.
Apply the change to staging and verify execution views
The administrator applies the new rollover conditions, index settings or templates to staging, then the platform engineer runs the Shuffle UI and API checks. In the UI, open recent and old workflow executions, confirm each loads with its steps and results, and confirm search and filtering on the workflow list still return expected records. Call the backend API for a recent execution ID and an old one. Check that rollover created new backing indices as expected and that no execution returns an error. Done means every check passes and the results are logged.
Time typical searches before and after
Before applying anything to production, the team runs a fixed list of typical searches on the current production cluster and on staging with the change in place, such as recent executions by workflow, executions by status over a window and lookups by execution ID. Record each response time in a shared table. Compare the staging results with the production baseline. Done means the table shows baseline and post-change timings for every search, and any search that got slower is explained or fixed before production work begins.
Apply to production with a rollback step
The administrator schedules the change in a maintenance window agreed with the business owners, applies the saved configuration to production, and reruns the Shuffle UI and API checks and the timed searches. Keep the snapshot and the exported configuration ready. Write the rollback as explicit commands: reapply the exported settings and templates, then confirm the rollover policy reverts. Test the rollback on staging before the production window. Done means production passes the same checks as staging, the post-change timings are recorded, and the rollback steps are written, tested and stored with the change record.
Protecting retained execution data and the encryption key
Retained executions hold alert data, enrichment results and sometimes credentials passed through workflows, so deleting old indexes is a security decision as well as a performance one. The cards below cover who can read and delete that data, how deletions are recorded, how traffic and backups are protected, and why the encryption key must stay fixed while retention changes.
Limit who can read and delete indexes
The OpenSearch Security plugin provides role-based access control, along with document-level and field-level security and field masking. Use these to restrict which accounts can query or delete execution indexes, and which fields analysts outside the SOC can see. Check that the Shuffle backend service account holds only the index permissions it needs for rollover and cleanup, and that no human operator has standing delete rights on backing indexes by default.
OpenSearch security docsRecord every index deletion
Audit logs must capture index deletion before any retention job runs in production. Confirm that the OpenSearch audit log configuration records delete and rollover-related requests with the caller identity, and that those logs are forwarded to storage the SOC cannot silently edit. Without this record, a missing execution history later cannot be explained to an auditor or incident responder.
Encrypt traffic between nodes and clients
Enable TLS for both node-to-node and client traffic in the OpenSearch cluster that Shuffle uses. Retained executions travel across this connection during rollover, reindexing and deletion, and reindexing copies full documents between indexes. Confirm certificate rotation ownership and that the Shuffle backend trusts the correct certificate authority before retention changes go live.
Treat old executions as sensitive data
Old executions often contain alert payloads, user identifiers, IP addresses, and output from enrichment apps that queried internal systems. Retention is therefore a data handling decision, not just storage hygiene. Map each execution field to the retention period your legal, HR and incident response obligations require, and confirm with your privacy and compliance leads how those obligations map to deletion settings before shortening or lengthening any window.
Handle snapshots and backups of retained data
Deleting an index in the live cluster does not remove copies held in snapshots or backups. Decide whether snapshot retention follows the same schedule as execution retention, who can restore snapshots, and where they are stored and encrypted. Test a restore into an isolated cluster so that a deleted execution cannot quietly return through an old backup that nobody tracks.
Keep SHUFFLE_ENCRYPTION_MODIFIER unchanged
Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret. Changing or losing this value breaks all saved app authentications. Keep it out of the retention runbook, store it in your secrets manager with a documented owner, and back it up separately from OpenSearch data so that restoring an index never leaves stored credentials unreadable.
Choosing a retention approach by situation
A single-node lab or proof of concept usually values speed of setup and a quick reset over anything else. The executions are test data, the team can rebuild workflows from exported files, and a full OpenSearch cluster is rarely the goal. Retention work here is mostly about keeping the disk from filling during testing and making sure the team does not confuse test history with production records.
- Priority: keeping the single node responsive while workflows are tested repeatedly.
- Typical change: shorter retention and simple deletion of old backing indexes, applied on a schedule the team controls.
- Extra checks: confirm that no workflow, app configuration or credential lives only in the execution history before deleting it.
- Recoverability: workflows should be exported and kept in version control so a reset does not lose logic.
- Labeling: mark the environment clearly so test data is never mistaken for an incident record.
Before deleting anything in a lab, confirm the environment is not being reused as production and that the workflow definitions are safely stored outside the cluster.
A production single cluster balances three goals: keeping searches and the Shuffle interface fast, keeping enough history to troubleshoot failed playbooks, and being able to recover if an index is damaged. Here the rollover conditions and deletion schedule are tuned to the workload, and changes are rehearsed before they reach live data. Retention length must come from the organization's own policy and any applicable regulation, not from a default in this guide.
- Priority: steady query speed and enough disk headroom for new executions.
- Typical change: rollover conditions set for the observed index size and age, with a deletion job that removes only backing indexes past the agreed window.
- Extra checks: take a snapshot before deleting, and confirm the backup can be restored in a test environment.
- Operational watch: monitor disk use and query latency after each rollover change.
- Reindexing: plan a reindex of workflowexecution in a maintenance window and verify document counts afterward.
Before deleting in production, check that the snapshot restores, the retention window is documented, and no open investigation depends on the records.
In a regulated environment, execution records can be evidence of what automation did during an incident, such as when a containment action ran or which indicator was blocked. Deleting them on a performance schedule can break audit trails and legal holds. The priority shifts to audit retention, integrity and controlled disposal, and changes to rollover or deletion should go through change control with the compliance team involved from the start.
- Priority: keeping records complete, provable and accessible for the period the policy requires.
- Typical change: rollover kept for performance, but deletion gated by a documented policy, approval and legal hold checks rather than automatic age-based removal.
- Extra checks: confirm which records are subject to hold, verify snapshot integrity, and record each deletion with who approved it.
- Access control: restrict who can delete indexes and make sure OpenSearch audit logging covers those actions.
- Confirm with auditors: ask the compliance owner which record types count as evidence and how long each must be kept.
Before deleting any backing index, confirm the retention requirement with the compliance owner, check holds, and keep a verified copy that meets the policy.
Limits to confirm before changing retention
Retention changes touch the Shuffle release, the OpenSearch version, the packaging and the way your deployment is managed. Each of these sets what you can change and how a change behaves, so confirm them in your own environment before you edit rollover or deletion settings.
Shuffle release and supported range
Confirm which Shuffle release runs in production and whether it falls in the supported range. Shuffle stopped supporting versions older than v2.1.1 after January 31, 2026, so an older install may need an upgrade before any index work is worth doing. Record the exact image tag, since the docs recommend pinning a release for stable operation and the latest tag for stable releases only if you accept that it moves. Check the release notes for any change to how execution data is written.
Shuffle configuration docsOpenSearch version and maintenance status
Confirm the OpenSearch version your Shuffle deployment uses and whether that version is still under maintenance. Versions in maintenance receive bug fixes and security patches but no new features, and older versions reach end of life on a published schedule. Rollover and index-setting behavior can differ between versions, so test on the version you run rather than assuming behavior from release notes for a newer line.
- Minimum maintenance window
- 1 year
Index names the backend expects
Confirm which index and alias names the Shuffle backend reads and writes before you roll over or delete anything. If the backend looks up execution data through specific names or aliases, a rollover that creates differently named indices can make recent executions disappear from the interface. Export the current index list and alias mapping first, then check that a test rollover keeps the names the backend queries.
Effect on reporting and case records
Confirm whether anything you plan to delete feeds reporting, dashboards, case history or audit trails. Workflow execution records are often the only evidence of what an automation did, and an incident review may depend on them after the retention window closes. Ask the people who own reporting and case management which indices they query, and agree on a retention period that satisfies them before deletion runs.
Packaging changes how settings apply
Confirm how your OpenSearch packaging applies index settings and lifecycle policies. A Docker image, Helm chart, Kubernetes operator, tarball, RPM or Debian install each stores configuration in a different place, and a setting changed in one place may be overwritten on the next redeploy. Document where the change lives, who reviews it, and whether it survives an upgrade of either Shuffle or OpenSearch.
Installing OpenSearchManaged or cloud limits on changes
Confirm whether your Shuffle deployment is managed by the vendor or a provider, or runs on infrastructure you control. On a hosted or managed service, you may not have direct access to OpenSearch settings, lifecycle policies or index deletion, so retention changes would need a support request. Ask in writing which retention controls you can change yourself and which ones require the provider to act.
Questions buyers ask about Shuffle retention and rollover
What drives the cost of setting up Shuffle execution retention and index rollover?
The cost is mostly the time spent measuring how much execution data Shuffle writes, agreeing a retention policy, and testing the change in a copy before touching production. Effort rises with the number of Shuffle environments, the number of OpenSearch clusters, how many backing indexes already exist, and whether old data must be reindexed rather than simply deleted. Some work is one-time (design, rollover and index settings, a runbook), and some recurs (reviewing index size, running deletion jobs after each upgrade). Ask any provider for a written scope that lists each environment, the index types covered, the test steps and the retest after the change.
Can our own team handle Shuffle retention and rollover without a partner?
Yes, if your team already runs OpenSearch and has access to the Shuffle backend and the cluster. The work needs someone who can read index sizes and lifecycle settings, change configuration in a staging copy, and delete indexes safely. Teams without that experience often underestimate the risk of removing data that a workflow, a case record or an audit need still refers to. A partner is most useful when the team lacks OpenSearch operations experience, has no staging copy, or needs the change documented for a compliance review. DeployOpen implements and documents this kind of change in infrastructure you control.
How long does the retention and rollover work take?
Duration depends mainly on data volume, the number of environments and how much reindexing is needed. A single small instance with default rollover conditions and a clear retention rule is quick to change. A large instance with many backing indexes, several clusters or a long history to reindex takes longer, because each step needs a backup, a test and a watch period. Ask for a timeline that separates assessment, staging tests, the production change window and the post-change check. DeployOpen agrees timelines in writing as part of a fixed scope, after the cluster has been measured.
What do we need to provide before the retention work starts?
You need to provide access to the OpenSearch cluster and the Shuffle environment with rights to read index and lifecycle settings, a staging copy that resembles production, a written retention policy, and a change window agreed with the operations team. Confirm who owns backups and whether a recent snapshot exists before any deletion. You should also name the people who can approve deletions. Without a staging copy, testing happens in production, which raises risk. Check the exact cluster version and Shuffle version with your vendors before the work starts, since settings can differ between releases.
Can we undo deleting old Shuffle indexes?
Only if you have a verified backup or snapshot taken before the deletion. Deleting an index in OpenSearch removes its data from the cluster, and there is no built-in recycle step, so recovery depends on restoring from a snapshot or from an external copy. Reindexing can recreate data in a new index from an existing source, but it cannot recover data that was already removed. Before deleting, confirm that a snapshot restores successfully in staging, record the index names, and keep the deletion scripted so the same scope is removed every time. Your legal and audit teams should approve the snapshot retention period too.
How do Shuffle or OpenSearch upgrades affect the retention change?
Upgrades can change how indexes, templates and lifecycle policies behave, so retention settings should be retested after each Shuffle or OpenSearch upgrade. Shuffle's configuration and release notes should be checked for changes to execution data handling, and OpenSearch's release and maintenance policy determines how long your version receives security patches. OpenSearch versions stay in maintenance until a newer major version is in maintenance or one year passes, whichever is longer, so plan upgrades before the version leaves support. Ask whether the upgrade and retention change will run in the same window or in separate ones.
What does DeployOpen not decide for us in retention work?
DeployOpen does not decide your legal or regulatory retention period. That decision belongs to your legal, compliance and records owners, who must consider the rules that apply to your sector and jurisdiction. DeployOpen can implement the retention rule you set, prepare the index settings, test deletion and reindexing, and document the procedure so that compliance reviewers can see how the rule is enforced. DeployOpen does not issue audit reports or certifications, and independent auditors and certification bodies make those determinations.
How DeployOpen scopes and delivers Shuffle retention work
DeployOpen approaches Shuffle execution data retention and index rollover as a fixed-scope piece of work on the OpenSearch cluster behind your Shuffle server. We first map how execution data grows in your environment, then change rollover, retention and reindexing in a test copy before anything touches production. Each step is documented so your team can run it after handover.
How we scope
- Review current OpenSearch index sizes, rollover behavior and how many executions your Shuffle instance writes each day
- Agree in writing which rollover conditions, index settings and retention rules are in scope
- Confirm your OpenSearch version and whether the cluster is a single node or a multi-node cluster before work starts
- Fixed-scope agreement sets deliverables and timelines; ask for the written scope and quote before approving
How we build
- Set up a test environment that mirrors your Shuffle and OpenSearch versions and loads representative execution data
- Configure custom rollover and index settings, then measure query behavior and index sizes against your baseline
- Write and test the procedure for deleting old backing indexes, with a verified backup taken before any deletion
- Rehearse reindexing of workflowexecution data and record how long and how much disk each step needs in your environment
How we hand over
- Deliver the final rollover and retention configuration with the reasons for each setting and the values we tested
- Provide step-by-step runbooks for deleting old indexes, reindexing and rolling back a failed change
- Document the checks your team runs to confirm rollover is working, including index count and disk growth
- Walk your operators through the runbooks and record which steps they have performed themselves
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement
- Retainer work can cover re-tuning retention when execution volume changes or when Shuffle and OpenSearch versions are upgraded
- Agree the support boundary in writing, including who approves deletions of execution data and who holds the backups
- Ask us to confirm how retainer scope, response expectations and reporting are defined before signing

