OpenSearch workload management for shared clusters

OpenSearch workload management groups search traffic by team or tenant, applies resource limits and cancels demanding queries. This page explains when to use it, how to configure and install it, and what to confirm first.

On this page

How OpenSearch workload management protects a shared cluster

Workload management stops one heavy query from starving every other team on a shared OpenSearch cluster. Introduced in OpenSearch 2.18, it groups search traffic into workload groups, applies tenant-level admission control, and cancels demanding queries when a group exceeds its limits. It depends on the Workload Management plugin, so the plugin must be installed and enabled before any group can enforce anything. The workload management overview in the OpenSearch docs describes the feature model, and you should read it against the exact version you run, because the feature set and API paths have changed between releases.

Naming matters when you read older material. OpenSearch 3.0 renamed query groups to workload groups, including the endpoint that previously appeared as wlm/query_group, which now appears as wlm/workload_group. Scripts, dashboards and runbooks written for 2.x may call the old name, so check the breaking changes list before upgrading and update any automation that calls the API directly. Confirm the exact endpoint and setting names in your target version rather than copying them from a blog post.

Before you create groups, decide who belongs to each one and what a fair share means for them. Map each team or tenant to a group, set limits you can justify from observed load, and agree in writing who owns the cancellation policy. Ask for a test cluster run that replays a realistic mix of queries and confirms that a runaway query is cancelled while the other groups keep responding. Your partner or internal team should also record which limits were tuned and why, because the first set of limits is usually a starting point rather than a final policy.

When a shared cluster needs workload groups

Workload groups earn their place when one cluster carries traffic that competes for the same resources. The cards below describe common mixes where a single heavy consumer can degrade everyone else, and what to check before deciding. Whether isolation is worth the added configuration depends on your own query profile, so confirm fit against measured traffic rather than assumptions.

Application search beside log analytics

Customer-facing search and log ingestion or dashboard queries often share data nodes. Log dashboards that scan wide time ranges can consume CPU and memory that search latency depends on. Before deciding, measure p95 search latency during peak log queries, and identify which traffic the business treats as the priority if the two conflict. This is the most common reason teams first look at workload groups.

Feature introduced in
2.18
Workload management docs

Internal tenants with different service levels

When several business units share a cluster, one team may need guaranteed capacity while another accepts best-effort access. Workload groups let you assign each tenant a group with its own limits, so a lower-priority tenant reaching its ceiling does not slow a higher-priority one. Confirm the tenant list, the agreed service levels, and who approves changes to those limits before configuring anything.

A few expensive analyst queries

Ad hoc analyst queries with wildcards, large aggregations or deep pagination can run far longer than typical traffic. Isolating analysts into their own group and setting resource limits helps keep them from starving production queries. Check which query shapes analysts actually run by reviewing slow query logs first, since a small number of queries often causes most of the load.

Noisy batch and reindex jobs

Bulk indexing, reindex operations and scheduled exports can saturate resources for long periods. Placing them in a separate group keeps their load bounded while interactive users continue to work. Plan the batch schedule against the group limits, and test the job at realistic volume, because a job that finishes in the test environment may behave differently under production data sizes.

Cancellation of runaway queries

Workload groups can cancel queries when a group exceeds its limits, which matters when a single request would otherwise hold resources indefinitely. Cancellation changes application behavior, so client code must handle a cancelled request gracefully and retry or report it. Confirm with your application owners which errors they can surface to users and which workloads must never be cancelled.

Workload group configuration options and when each fits

This table compares the main configuration choices for OpenSearch workload groups: how traffic is assigned, which limits to set, whether to enforce or only monitor, and whether to cancel or only admit and reject queries. Read each row as a decision, and confirm exact keys and defaults in the workload management docs for your version before you finalize a design.

DecisionOptionWhen it fitsTrade-off
Traffic assignmentAttribute-based rules matched to requestsTeams or applications send requests that can be identified by a consistent user, index or sourceRules need upkeep when clients or naming change, and unmatched traffic may land in a default group
Traffic assignmentApplication or client identifiers set by callersYou control the client code and can tag each request with the group it belongs toDepends on every client sending the tag correctly, so untagged traffic needs a clear fallback
Resource limitsPer-group limits on resource useA few tenants or dashboards regularly crowd out others and you need a fair share during peaksLimits set too low throttle legitimate work, and limits set too high give little protection
Resource limitsConservative limits on a new groupYou are onboarding a team or testing a design on production-like loadSafer to start, but it needs measurement to tune up without hurting users
Enforcement modeMonitor onlyYou are establishing baselines and want to see which queries would breach limitsNo protection during the observation period, so high-risk tenants stay unbounded
Enforcement modeEnforce limitsBaselines are stable and a tenant must not degrade other tenantsEnforced rules can reject or cancel legitimate work, so changes need a rollout plan and owner sign-off
Query actionAdmit or reject new requests onlyOverload comes from many small requests and you want to shed new load without ending running workLong-running queries that already started keep consuming resources
Query actionCancel demanding queries that exceed limitsA single expensive query can exhaust shared resources and must be stoppedCancelled searches fail for the caller, so dashboards and jobs need retry or messaging

Installing the Workload Management plugin and creating groups

This sequence checks the cluster version, installs the Workload Management plugin on every node, defines a workload group for each tenant with limits, and confirms that the limits take effect under a test workload. The result is a shared cluster where one team's demanding queries cannot starve the others.

  1. Confirm the cluster version supports workload management

    The platform engineer running the cluster checks the running OpenSearch version on every node before changing anything. Workload management was introduced in OpenSearch 2.18, so the cluster must be on 2.18 or later. If the cluster is older, plan an upgrade first using the supported upgrade methods, because the feature cannot be added to earlier versions. Confirm the version in the cluster's root endpoint output and record it in the change ticket. The step is complete when every node reports a version at or above 2.18 and the version is written down alongside the target plugin version.

  2. Check plugin availability for your install method

    The platform team confirms that the Workload Management plugin ships with the install method your organization uses: Docker, Helm, the Kubernetes operator, tarball, RPM, Debian, Ansible or Windows. The method determines how the plugin is added, whether the image or package must be rebuilt, and how the change is rolled out to nodes. Confirm the exact plugin name and version against the install documentation for your release, and confirm it matches the cluster version exactly. The step is complete when you have a written note of the install method, the plugin version and the rollout procedure your team will follow.

  3. Install the plugin on every node

    The platform engineer installs the Workload Management plugin on each data, ingest, coordinating and cluster manager node, using a rolling change so the cluster stays available. Install the same plugin version on every node, since mixed plugin versions across a cluster are a common cause of startup failures. Restart nodes one at a time and wait for cluster health to return to green before moving to the next node. The step is complete when the plugin appears in the installed plugin list on every node and cluster health is back to its starting state.

  4. Define a workload group for each tenant

    The platform owner creates one workload group per team or tenant that shares the cluster, naming each group so its owner is obvious in dashboards and logs. Decide which tenants share a group and which need their own, based on how much search and indexing traffic each produces and how sensitive their latency targets are. Create the groups through the workload group API on the cluster, and note that on OpenSearch 3.0 and later the endpoint is named workload_group, following the rename from query groups. The step is complete when a GET request to the group endpoint lists every tenant's group with the expected name.

  5. Set resource limits and cancellation behavior

    The platform owner sets the resource limits for each workload group, choosing the thresholds that trigger admission control and the rules for cancelling demanding queries when a group exceeds its share. Base the values on measured baseline traffic from a non-production copy of the cluster, not on guesses, and agree the values with each tenant owner in writing. Record each group's limits in version control so changes are reviewed. The step is complete when each group's stored settings match the approved values and a reviewer has signed off on the change record.

  6. Assign indices and users to their groups

    The platform engineer routes each tenant's searches to its workload group, following the routing method documented for your release, and confirms that users from one tenant cannot send traffic under another tenant's group. Pair this step with the access controls in the Security plugin so that index and role boundaries match the group boundaries. Test with one user from each tenant and check the group attribution in the stats output. The step is complete when each test user's requests are counted against the correct group and no request falls into an unassigned bucket.

  7. Verify limits with a test workload

    The platform team runs a controlled test workload that deliberately exceeds one group's limits while the other groups run normal traffic, then confirms that the demanding group is throttled or cancelled and the other groups keep their expected latency. Use a non-production cluster or a quiet window on production, and record query counts, cancellations and response times for each group. If a neighbor group degrades, revisit the limits before go-live. The step is complete when the written test report shows the limit behaved as the approved settings predicted, and each tenant owner has reviewed the results.

How admission control and query cancellation interact

Admission control and query cancellation are two steps in one request flow, and the order matters. A request is first tagged to a workload group, which is the unit that carries limits. Admission control then compares the group's current resource usage with its configured limits. If the group is within its limits, the request runs. If a query that is already running exceeds the group's limits, the workload management feature cancels it. Per the OpenSearch workload management documentation, the feature groups search traffic into workload groups, applies tenant-level admission control, and cancels demanding queries when limits are exceeded. Confirm in the docs for your version exactly which request types are tagged and how the tagging is supplied, because a request that is not tagged to a group will not be governed by that group's limits.

The core trade-off is protecting other tenants against rejecting legitimate work. A tight limit keeps one team's heavy aggregation from slowing everyone else, but it also cancels or turns away queries that were valid and that the cluster could have handled. A loose limit avoids false rejections but gives little protection during a spike. Because the right threshold depends on your own query mix, limits should be set from measurement first. Run the group in a monitoring-only posture where you can, record resource usage per group during normal and peak hours, and identify which queries would have been cancelled. Review those queries with the owning team before enforcement starts. Ask the vendor or your own test cluster to confirm how the feature reports would-be cancellations in your version, since that behavior is what makes a measured rollout possible.

How a search request passes through workload groups

The diagram starts at a client request that carries a tenant identity. The request is routed to the workload group assigned to that tenant, where admission control checks it against the group's resource limits. Within limits, the query is served by the shared cluster. When limits are exceeded, the demanding query is cancelled, so one tenant's load does not starve the others. Check that each tenant maps to exactly one group and that limits match the traffic you expect.

Requests are tagged, routed to a workload group, and checked by admission control on a shared cluster.

Security and operational considerations for shared clusters

Workload groups decide how search capacity is shared, but they do not decide who may use which data or who may change the rules. The cards below cover the controls that sit around workload groups: identity mapping, change control, audit trails, cancellation monitoring and the data-level protections that still need the Security plugin.

Map tenants to Security plugin roles

Each workload group should correspond to a tenant or team that already exists in your access model. Map that team to a Security plugin role, and map the role to an identity backend such as SAML, OpenID Connect, LDAP or Active Directory. Confirm that the mapped users reach the group you intend, and that a user who changes teams loses the old group membership at the same time. Test this with a sample user from each tenant before go-live, since a mismatch here moves load to the wrong group without any error.

Security plugin docs

Limit who can change group definitions

Changing a workload group's resource limits affects every tenant that shares the cluster. Restrict the permission to edit workload groups to a small platform administrator role, separate from the roles used by application teams. Confirm in the cluster's configuration how the group endpoints are protected, because a team with write access to the group API can raise its own limits. Record who approved each change and keep that approval with the change ticket.

Introduced in
2.18

Audit configuration changes

Changes to workload groups should appear in an audit trail that is kept outside the cluster it describes. Enable the Security plugin audit logs, confirm that the categories you need cover administrative API calls, and forward the records to storage your platform team controls. Review who changed a limit, when, and from which account. Without this trail, a sudden drop in one tenant's query success is hard to trace back to a configuration edit.

Security plugin docs

Monitor cancelled queries by tenant

Workload management cancels queries when a group exceeds its limits, so cancellations are an operational signal as well as a protection. Track cancellation counts per workload group and per tenant over time, and set an alert for sustained growth rather than single events. A rising count may mean a group is undersized, a client is retrying in a loop, or a team has changed its query pattern. Agree with each tenant who owns the response before the first alert fires.

Keep document and field controls in place

Workload groups control how much search capacity a tenant can use, not what the tenant can read. Document-level security, field-level security and field masking still need to be defined in roles for any index that holds data a tenant should not see. Check that every shared index has these controls where they are required, and that a tenant with a large group allocation does not also receive broader index patterns than its role allows. Treat the two configurations as separate reviews.

Security plugin docs

Plan for TLS and node roles

Shared clusters concentrate traffic from many teams, so the transport and client paths need TLS for both node and client traffic before workload limits are tuned. Confirm which node roles serve coordinating and data work, since workload limits behave differently when a few nodes absorb most of the load. Document where certificates are issued and renewed, and check that a renewal does not interrupt the queries that workload groups are meant to protect.

Questions buyers ask about workload management

Is workload management included in the Apache 2.0 version of OpenSearch?

Yes, workload management is part of the open-source project, which is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe a paid edition. The feature was introduced in OpenSearch 2.18 and requires the Workload Management plugin, so confirm that the plugin is installed and supported in the exact version you run. Check the OpenSearch workload management docs for your version before you plan around specific settings. If you are on OpenSearch 3.0 or later, expect the older query group naming to be replaced by workload groups, including the wlm/workload_group endpoint.

How much effort does a workload management setup take, and what drives it?

The main drivers are the number of tenants that need separate limits, how much you already know about each team's query patterns, and how much testing the cluster needs before limits go live. Each additional tenant adds a workload group to design, a set of resource thresholds to justify, and a test case to prove that it does not starve others. Measurement work is often the largest share: you need baseline latency, resource use and peak timing per team before you can set sensible limits. Cluster size, the number of node roles involved and whether you run several clusters also change the work. Ask any partner to break its quote into discovery, design, configuration, testing and handover so you can see which drivers they priced.

What does our team need to provide for the work to succeed?

Plan to provide four things before the build starts. First, cluster metrics for a representative period, including query latency, search thread pool pressure, heap and CPU use, and how load varies across the day and week. Second, query samples or saved searches from each tenant, so limits are tested against real demand instead of assumptions. Third, named owners for each team who can approve limits and accept cancelled queries as a trade-off. Fourth, change windows for installing the plugin, applying configuration and running load tests, because these steps can affect a live cluster. Agree on who signs off each limit and how a team requests a change later.

Can our own platform team set up workload management without outside help?

Yes, a team with OpenSearch operations experience can install the plugin, define workload groups and apply limits without a partner. The harder part is usually the surrounding work: deciding who gets which group, measuring real demand, and proving that cancellation rules do not break important jobs such as dashboards, alerting or reindexing. Teams that do it alone often skip the test phase, then find out in production that a limit cancels a nightly job. Ask whether your engineers have time to run load tests, and whether someone will own the limits after launch as teams and data volumes change.

How is workload management different from running a separate cluster per team?

Workload management keeps one cluster and divides its resources, so teams share hardware, storage and operational overhead, but a demanding tenant can be limited or have its queries cancelled when it exceeds its thresholds. Separate clusters isolate teams fully, including data, upgrades and failure domains, but each cluster adds nodes, patching, monitoring and backup work. The right choice depends on how much isolation a team requires for security and compliance, whether workloads share data, and how much operations capacity you have. Many organizations use workload groups for internal teams with similar data sensitivity and separate clusters where isolation is a formal requirement. Confirm with your security team which boundary they expect to see in a review.

Does workload management protect data access between tenants?

No, workload management controls resource use and query admission, not who can read which data. Access separation comes from the OpenSearch Security plugin, which provides role-based access control, document-level and field-level security, and audit logs. If tenants must not see each other's data, configure those roles alongside workload groups and test both together. Treat resource limits as an availability control, not a confidentiality control. Your compliance reviewers will usually ask for both, so plan the access model and the workload model in the same design review.

What goes wrong most often after workload limits go live?

The most common problems are limits set from guesses rather than measurements, cancelled queries that teams did not expect, and limits that nobody reviews after usage grows. Engineers also report confusion when a tenant's queries are cancelled and the error is not traced back to a group limit, so logs and alerts need to show which group triggered each cancellation. Plan a review after the first few weeks of production, check cancellation counts by group, and agree on a process for raising a limit. Keep a rollback path so you can relax a threshold quickly if a critical job is affected.

What changes when you upgrade to OpenSearch 3.x

The most important change for shared clusters is that query groups were renamed to workload groups in OpenSearch 3.0. If your team created query groups on OpenSearch 2.18 or later, the objects and the API path that managed them now use the new name, including the wlm/workload_group endpoint. Any script, infrastructure-as-code module, runbook or CI job that calls the old query group path will need to be updated before or during the upgrade, or it will fail once the cluster is on 3.x.

Start with an inventory. Search your automation repositories, configuration management code, monitoring checks and admin runbooks for the old query group naming and for calls to the workload management API. Check dashboards and saved views that display group names or thresholds, because the labels and any filters built on them may need to match the new terminology. Also review any tenant onboarding process that creates groups, since a template that still uses the old names will quietly stop working. Record the owner of each item so that someone is accountable for testing it against a staging cluster.

Before you schedule the upgrade, read the OpenSearch breaking changes documentation and confirm the exact changes that apply to your target version, because a rename is only one item on that list. Test the full path on a copy of your cluster: create a workload group, confirm that admission control and query cancellation still behave as your tenant limits expect, and run each updated script. Treat the test results as the input to your change plan, and do not assume that a group definition created under the old name will be carried over without checking it.

How DeployOpen scopes and delivers workload management

DeployOpen plans, implements, documents and supports self-hosted OpenSearch inside your own infrastructure, including the Workload Management plugin and the workload groups that keep teams from starving each other on a shared cluster. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory the teams, tenants and query types sharing the cluster and their current contention points.
  • Confirm the OpenSearch version and whether the Workload Management plugin can be installed in your environment.
  • Define workload groups, resource limits and cancellation rules in a written scope with agreed deliverables.

How we build

  • Install and configure the Workload Management plugin on a non-production cluster that mirrors your topology.
  • Map each tenant's traffic to a workload group and test admission control against realistic query loads.
  • Test cancellation behavior on demanding queries and confirm that critical workloads keep their resources.

How we hand over

  • Document group definitions, limits, role mappings and the runbook for changing them as teams grow.
  • Walk your platform and operations engineers through monitoring of group usage and cancelled queries.
  • Record configuration in your own repositories so changes are reviewed and reproducible on your side.

How we support

  • Support upgrades across OpenSearch versions, including the workload group endpoint rename in 3.0, as a retainer.
  • Retest limits after onboarding a new tenant or a major change in query patterns.
  • Keep the cluster current within the maintenance window of each version, as agreed in your support terms.

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.