Why OpenSearch node roles need planning before the first install
If you are sizing a self-hosted OpenSearch cluster, decide the node count and the role of each node before you install anything. The roles decide how the cluster elects its leader, where data lives, how requests are parsed and routed, and how much failure the cluster survives. Changing them later is possible, but it means reshaping a running cluster that already holds indices, replicas and client connections, so the layout is worth settling on paper first.
OpenSearch splits work across four core roles. Cluster manager nodes track cluster state, decide shard placement and elect the leader. Data nodes hold shards and run indexing and search. Ingest nodes run pre-indexing pipelines that transform documents. Coordinating nodes receive client requests, fan them out to data nodes and merge the results. A node can hold several roles, but the OpenSearch cluster documentation recommends dedicated cluster manager nodes, so that a busy data node does not also have to manage cluster state.
Replica placement matters as much as role placement. The docs recommend keeping replicas on separate nodes from their primaries and using shard allocation awareness, so that a single host, rack or zone failure does not take out both copies of a shard. Confirm with your infrastructure team which failure domains you actually have (hosts, racks, availability zones or data centers) before you assign nodes to them, because the cluster can only spread copies across domains that you define.
The Apache License, Version 2.0 that covers the project means the roles and topology you design are yours to change without a license negotiation. That is context for planning, not a reason to skip it. The layout still has to fit your data volume, query load and recovery targets, and the sizing work is what determines whether a seven-node sample layout, a smaller one or a larger one is right for you.
How the node roles fit together in a cluster
Client requests enter through coordinating nodes, which fan out queries to data nodes that hold the shards. Cluster manager nodes track cluster state separately, so they do not carry query traffic. Ingest nodes run preprocessing before documents reach data nodes, and optional warm and search nodes sit behind the data tier for snapshot-backed or search-replica workloads. Check which hops cross a trust boundary, since client traffic, node-to-node transport traffic and admin access each need their own TLS and firewall rules.
Client traffic, cluster state and snapshot-backed nodes flow through separate roles.
What each node role does and when it is worth dedicating
OpenSearch clusters combine a small set of node roles, and each role carries a different load and failure risk. The cards below cover what each role does, when a dedicated pool is worth its cost, and when one node can safely hold several roles. Confirm role names and feature availability against the docs for your version before you finalize a layout.
Cluster manager nodes
Cluster manager nodes hold cluster state, track which nodes and indices exist, and decide shard placement. They do little data work, so their job is mainly stability. The OpenSearch docs recommend dedicated cluster manager nodes, and a three-node set is the layout the docs illustrate for a production-style cluster. Dedicate them once the cluster grows past a handful of nodes or once data nodes start running hot. On a small test cluster, one node can combine this role with others, but plan for an odd number of cluster manager eligible nodes so a quorum survives a single failure.
- Illustrated cluster manager nodes
- 3
Data nodes
Data nodes store shards and run most indexing and search work, so they carry the disk, memory and CPU load. Their sizing drives the cost of the whole cluster. Give them a dedicated pool when indexing or query volume is significant, or when you need to scale storage independently of other roles. Replicas should sit on separate data nodes, and shard allocation awareness should spread copies across zones or racks. For a small cluster, combining data with ingest on one node is usually acceptable, but confirm heap and disk headroom under peak load first.
Ingest nodes
Ingest nodes run pipelines that transform documents before they are indexed, such as parsing fields, enriching records or dropping unwanted data. Their cost rises with pipeline complexity and event volume. A dedicated ingest pool pays off when pipelines are heavy enough to slow indexing on data nodes, or when log volume spikes unpredictably. If pipelines are light and volumes are modest, the role can share a node with data. Measure pipeline CPU time before deciding, because a slow pipeline can back up the whole write path.
Coordinating nodes
Coordinating nodes receive client requests, fan them out to data nodes, and merge the results. They hold no shards of their own. A dedicated coordinating pool helps when many clients run large aggregations or when search concurrency grows, because merging results consumes memory on the coordinating node. The docs illustrate a single coordinating node in a seven-node example. For small clusters, the role is often left on a cluster manager or data node, but watch for memory pressure caused by heavy aggregations.
ML and warm nodes
Warm nodes carry the warm role, and searchable snapshots need nodes with that role to serve indices held in a snapshot repository. Keeping older data on warm nodes separates long-retention, lower-access data from hot indices. ML nodes host machine learning workloads so that model work does not compete with search and indexing. Dedicate either pool only when a specific feature requires it or when retention or ML demand is large enough to justify separate hardware. Confirm the exact role names, supported features and hardware guidance in the current docs for your version.
Search nodes for remote-store clusters
In clusters that use remote-backed storage, search nodes can host search replicas, which lets read traffic scale separately from indexing. This matters when query load grows faster than write load, or when you want to isolate search latency from ingestion. Search nodes depend on the remote-store setup, so the decision starts with your storage architecture rather than hardware preference. Confirm the current requirements for remote-store clusters and search replicas in the separate workloads docs before planning capacity.
Separate workloads docsTopology options and when each fits
This table compares four cluster layouts, from a small combined-role cluster to one that adds warm or search nodes, across typical use, availability trade-off and operational cost drivers. Read each row as a starting point, then check it against your shard count, retention and query load. The main takeaway is that added roles buy isolation and availability, but each one adds hosts, configuration and patching work that someone must own.
| Topology | Typical use | Availability trade-off | Operational cost drivers |
|---|---|---|---|
| Combined-role small cluster | Development, proof of concept, or a small single-team search index with modest data volume | Cluster manager and data roles share hosts, so a node loss can take out both cluster state and data at once | Fewest hosts and simplest configuration, but heap pressure from indexing or queries affects cluster management too |
| Three cluster managers with data and coordinating nodes | Production clusters where data growth and query load justify dedicated cluster manager nodes (illustrative: the docs' seven-node example uses three cluster managers, three data nodes and one coordinating node) | Dedicated cluster managers keep cluster state stable under data load, and replicas on separate nodes protect data if a node fails | Seven hosts in the illustrative example, each with its own storage, heap sizing, patching and monitoring; confirm the count with your architect |
| Dedicated ingest nodes added | Heavy write pipelines where ingest processors such as parsing or enrichment compete with indexing and queries for CPU | Isolates pipeline CPU from data nodes, which helps keep search latency stable, but adds a tier that must also be sized and replaced | Extra hosts and CPU sizing that depends on pipeline complexity; ask for a load test that measures processor cost before buying hardware |
| Warm or search nodes added | Older indices queried less often (warm nodes for searchable snapshots) or separating search traffic from indexing on remote-store clusters (search nodes) | Warm data can be slower to query, and search nodes depend on remote-store configuration, so confirm recovery and failover behavior for your version | Object storage access and cache sizing for searchable snapshots, plus the license, network and operational work of an extra node tier |
How shard allocation and awareness shape the layout
A replica is only useful for availability if it lives on a different machine from its primary. Replicas must land on separate nodes, because a replica sharing a host with its primary fails at the same moment as the data it protects. The cluster layout therefore has to leave room for replica placement from the start. If you run three data nodes with one replica per shard, every shard needs two copies spread across those three nodes, and a two-node data tier cannot satisfy that rule without leaving some replicas unassigned. Work out the shard count, replica count and data node count together before you commit to hardware, and confirm how your version handles unassigned replicas and yellow cluster health in the OpenSearch cluster documentation.
Shard allocation awareness extends the same idea to failure domains. You tag each node with an attribute such as a zone or rack, and the allocator then tries to place a primary and its replicas in different values of that attribute. In practice this means a zone failure takes out one copy rather than all of them. The attribute is set in each node's configuration, usually through a node.attr key, and the allocation awareness setting names which attribute to balance across. The layout question is whether you have enough distinct zones or racks to hold the copies you need. With two zones, an awareness rule can still keep copies apart, but losing one zone leaves the surviving zone carrying every copy. Ask the infrastructure team which failure domains are truly independent before relying on the tags.
Cluster manager quorum explains why the number of cluster manager nodes should be odd and why three is the common starting point. The cluster manager must agree on cluster state, and a majority of the voting nodes has to be reachable to elect a leader and commit changes. An odd count gives a clear majority after a single node loss, while an even count can split evenly during a network partition and stall. The practical consequence is that a two-zone deployment needs a deliberate choice about where the third voter sits, because a simple split leaves neither side with a majority. Confirm the voting configuration, the allocation awareness settings and the replica behavior for your exact version in the documentation, and test a node or zone loss in a non-production cluster before you depend on the layout.
Choosing a layout by workload
Log analytics puts heavy, steady write pressure on the cluster. Ingestion, indexing and daily index rotation consume most of the resources, while queries tend to be bursty and concentrated on recent data. The usual starting point is to keep dedicated cluster manager nodes separate from data nodes so that a busy indexing period cannot starve cluster state changes. Ingest work can stay on data nodes at small scale, but separating ingest nodes becomes worth evaluating when parsing pipelines get expensive.
- Dedicated cluster manager nodes: Keep them out of the indexing path so cluster state stays stable during ingestion peaks.
- Data nodes sized for indexing: Give the hot tier the most CPU, memory and fast disk, since it carries both writes and recent queries.
- Separate ingest nodes: Consider them when enrichment or parsing pipelines compete with indexing on data nodes.
- Coordinating nodes: Add them when many dashboards or API clients query the cluster at once, so fan-out and result merging do not load data nodes.
- Warm nodes for older logs: Add the warm role and move older indices to searchable snapshots when retention is long and older data is queried rarely.
Confirm with your team which indices are queried after seven days, how many dashboards run concurrently, and whether parsing pipelines run on the ingest path before you fix the node count.
Application search is read-heavy. Query traffic from users and services drives latency, while indexing is usually smaller and scheduled, such as catalog updates or content publishing. The layout therefore emphasizes query capacity and a stable, predictable data tier. Coordinating nodes become more valuable here because they absorb client connections and merge results, which keeps query fan-out away from data nodes serving the index.
- Coordinating nodes for query traffic: Place them in front of the data tier so client connections and result merging are isolated from shard work.
- Data nodes sized for query load: Choose memory and storage for the working set of the search indices, and keep replicas on separate nodes.
- Dedicated cluster manager nodes: Keep them separate so that index updates during peak traffic do not affect cluster stability.
- Ingest nodes only when needed: Many search indices are loaded by batch jobs, so ingest work often fits on data nodes unless pipelines are heavy.
- Search nodes where the platform supports them: Remote-store clusters can add search nodes for search replicas, which separates query load from indexing. Confirm this against the version you plan to run.
Confirm the ratio of queries to indexing operations, the latency target your application needs, and whether the index must survive a zone failure before you decide how many coordinating and data nodes to run.
Security analytics combines continuous ingestion from many log sources with long retention and frequent investigative queries across months of data. Retention is the main cost driver, so the layout separates storage tiers more deliberately than the other workloads. Detection and investigation queries usually need fast access to recent data, while older events are searched less often but must remain available for audits and incident reviews.
- Dedicated cluster manager nodes: Protect cluster stability, since detection rules and alerting depend on a healthy cluster.
- Hot data nodes for recent events: Keep the last period of detection data on the fastest storage so rules and investigations stay responsive.
- Warm nodes with searchable snapshots: Require nodes with the warm role for searchable snapshots, which let older events stay queryable without keeping every index on hot storage.
- Coordinating nodes for analysts: Add them when many analysts and automated jobs query the cluster together.
- ML nodes when anomaly detection is in scope: Plan them separately so model work does not compete with ingestion and search.
Before you commit to a retention period, confirm with your compliance team how long events must stay queryable, how quickly restored data must be searchable, and which snapshot repository will hold the warm data.
How to plan the topology step by step
This sequence turns availability goals and workload measurements into a node layout that a team can build, test and hand over. Each step closes with a check so the cluster design is confirmed before any hosts are provisioned.
Define availability and recovery goals
Start by writing down what the cluster must survive: loss of a single node, loss of a host rack, loss of a zone, and how long search or ingest may be unavailable during an incident. The platform owner and the business owner of each use case should sign off on these answers together. Done means the goals are a short written list that names the failure scenarios you will test later. The OpenSearch cluster docs recommend dedicated cluster manager nodes, replicas on separate nodes and shard allocation awareness for availability, so these goals decide how many of each you need.
Inventory data volume and query patterns
Measure the data you expect to index, the retention period per index, the ingest rate at peak, and the search and aggregation load from dashboards, applications and alerting. Separate write-heavy log indices from latency-sensitive search indices, because they stress nodes differently. Ask the owners of each source for peak rates rather than averages. Done means you have a table of indices with daily volume, retention, peak ingest and expected query types, which is the input for sizing data nodes.
Choose the deployment method for the nodes
Decide how the nodes will be hosted before you assign roles, because the method changes how roles are placed and replaced. The official install paths include Docker, Helm, the OpenSearch Kubernetes Operator, tarball, RPM, Debian packages and an Ansible playbook. Platform engineering should confirm that the chosen method can pin each node to a host, zone or rack and can replace a node without rebuilding the cluster. Done means a short decision record names the method and the placement mechanism it provides.
Assign node roles to each node group
Map each workload to roles: cluster manager, data, ingest, coordinating, and where needed warm, search or ML nodes. Start with dedicated cluster manager nodes in an odd number so quorum survives a single failure, and add separate node groups only when a measured workload needs them. Searchable snapshots require nodes with the warm role, and remote-store clusters can add search nodes for search replicas, so include those only if those features are in scope. Done means a role table lists each node group, its role set, host count and the workload it serves.
Plan awareness attributes and shard placement
Define the attributes that describe where each node sits, such as zone or rack, and configure shard allocation awareness so primary and replica shards land in different failure domains. Confirm with the infrastructure team which physical or cloud boundaries are truly independent, because a shared switch or storage array can undo the protection. Done means you can show, for each index pattern, which attribute separates a primary from its replica, and the awareness settings are written into the deployment configuration.
Validate the layout on a test cluster
Build the planned topology in a non-production environment with representative data and replay a realistic sample of ingest and query load. Then simulate the failures from step one: stop a cluster manager node, stop a data node, and drain a zone if you have one. Check cluster health status, shard recovery time, and whether search and ingest continue. Done means the test results match the availability goals, and any gap has a documented change to roles, counts or awareness settings.
Confirm health checks and sign off the topology
Before production, define the health checks that will run continuously: cluster status, unassigned shards, node count per role, disk watermarks and heap pressure. Record the expected values so operators can tell a normal state from a degraded one. Ask the security and compliance teams to review the topology for network paths and data placement, since node roles change which hosts hold sensitive data. Done means the topology document, the test report and the monitoring thresholds are approved and stored with the deployment code.
Security and operational considerations for multi-role clusters
Splitting a cluster into node roles spreads traffic, credentials and maintenance across more places. The cards below cover the controls that have to follow that split: encryption on every connection, role-scoped access, audit trails and consistent upgrades across node pools.
Transport TLS between nodes
Cluster manager, data, ingest and coordinating nodes exchange state and documents over the transport layer, which is typically port 9300. Enable TLS there so a node that joins the cluster must present a certificate the cluster trusts. Check that each role pool uses the same certificate authority and that a new node type cannot join with a self-signed certificate. Ask your team who owns the CA and how renewal reaches every pool.
Security docsClient TLS on each entry point
Clients, Dashboards, ingest pipelines and any search nodes reach the cluster over the REST layer, typically port 9200. Decide which roles accept client connections and enforce TLS on each one, not only on the coordinating tier. Confirm that Dashboards, log shippers and application services each have a documented certificate path. Any endpoint left on plain HTTP becomes the weakest point in the topology.
Role-based access on every node pool
The Security plugin supports role-based access control, so each user, service account and application can be limited to the indices and actions it needs. Map roles to the work each node pool serves, such as ingest pipelines writing to data indices and dashboards reading from them. Review role mappings whenever a pool is added. Overly broad roles copied from a sample configuration are a common finding in reviews.
Separating cluster manager access
Cluster manager nodes hold cluster state and control shard allocation, so administrative access should not be granted through the same roles used for data queries. Limit who can change cluster settings, and keep those credentials off application hosts. Restrict access to the cluster manager pool at the network level as well. Confirm in writing which team can change cluster-level settings and how that change is recorded.
Audit logs for administrative and data actions
Audit logging records who accessed what, which matters when several roles and pools share one cluster. Decide early which categories to log, such as failed authentication, admin changes and access to sensitive indices, because verbose logging adds storage and index load. Route audit output to a location that the operators of the cluster cannot silently edit. Ask your compliance team which events their assessment expects to see.
Keeping certificates and versions aligned
Every added pool multiplies the work of rotating certificates, updating the Security configuration and applying patches. Mixed versions across pools complicate rolling upgrades, so plan one version line for the whole cluster and a documented order for updating pools. The cost is recurring staff time for each rotation and upgrade, and it grows with the number of pools. Ask any partner to quote this as an ongoing task, not a one-time setup.
Questions buyers ask about OpenSearch node role planning
Is a three-node OpenSearch cluster enough for production?
A three-node cluster can be enough for a small workload, but it is the size where node roles start to matter. With three nodes that each hold every role, a single node failure removes a cluster manager, a data node and possibly a coordinating node at once. The OpenSearch cluster documentation illustrates a larger layout, a seven-node cluster with three cluster manager nodes, three data nodes and a coordinating node, which shows how roles can be separated as the cluster grows. The right size depends on data volume, query load, replica count and how much failure you need to absorb. Confirm the topology against your own sizing numbers before you settle on a node count.
When should OpenSearch cluster manager nodes be dedicated?
Dedicate cluster manager nodes when the cluster is large enough that cluster state changes and data work should not compete for the same resources. The OpenSearch cluster documentation recommends dedicated cluster manager nodes for availability, so a common starting point is three of them, spread across failure domains. Dedicated managers keep cluster state management stable while data nodes handle heavy indexing, merges and queries. For a small test cluster, combining roles can be acceptable, but the trade-off should be a documented decision rather than a default. Keep the manager count odd so a quorum survives a single loss.
What drives the cost of an OpenSearch topology review?
The cost of a topology review is driven by the number of clusters, the number of node roles in scope and how much of your current workload you need to measure before deciding. Most of the effort goes into collecting data volumes, retention periods, query patterns, replica settings and failure requirements, then translating them into node counts, sizes and placement. Costs rise when the environment spans several clusters, when searchable snapshots or search nodes are under consideration, or when the review must cover compliance or network zoning. Ask for a written scope that lists the clusters, the workloads and the deliverables, and ask the quote to separate review effort from any later build work.
How long does an OpenSearch node role review take?
The duration depends on the written scope, so there is no fixed timeline that applies to every cluster. The work runs faster when workload data, retention rules and availability targets are already documented, and slower when they must be reconstructed from logs or interviews. Plan for input from the team that owns the data, the team that runs the cluster, and whoever signs off on availability and cost. Ask the provider to state the review phases, the inputs needed from your side, and the point where the topology is handed over as a document. Figures for any single engagement should come from that scope, not from general estimates.
What does the client need to provide for a topology review?
The review needs accurate inputs about your workload and your availability goals. Typical inputs include the list of indices and their expected growth, retention and snapshot requirements, search and indexing request patterns, the number of availability zones or data centers, and any use of machine learning, searchable snapshots or separate search workloads. You should also provide your current cluster version and upgrade plans, since version maintenance affects the layout you choose. Ask the provider to give you a checklist of these inputs before the work starts, so the review is not delayed by missing data.
Can our own team plan OpenSearch node roles without a partner?
Yes, a capable platform team can plan node roles alone if it has the time, the workload data and experience with cluster failure behavior. The core concepts are documented in the official cluster documentation, including cluster manager, data, ingest and coordinating roles, replica placement and shard allocation awareness. The harder part is testing the design under load and under failure, which usually needs a non-production environment and time to run the tests. A partner is most useful when the team lacks that capacity, when several clusters must be aligned, or when the design needs an independent review before it goes into a compliance review. Confirm your team's capacity for testing before deciding.
When are warm or search nodes worth adding to an OpenSearch cluster?
Add these roles only when a specific workload needs them, because each extra role adds hardware to manage. Searchable snapshots need nodes with the warm role, so they are relevant when older, read-only indices should stay queryable without occupying hot storage. Remote-store clusters can add search nodes for search replicas, which helps when read traffic should be separated from indexing. Both choices depend on your retention needs, query frequency and the storage architecture you run. The OpenSearch documentation on searchable snapshots and separate index and search workloads is the right next read before you decide.
Which OpenSearch version should the topology be designed for?
Design the topology for a version that is still under maintenance for the full planned life of the cluster. OpenSearch versions receive bug fixes and security patches during maintenance but no new features, and each version stays under maintenance until the next major version enters maintenance or one year passes, whichever is longer. Check the current release list before you commit, because newer minor versions arrive about every eight weeks. If you plan a migration from Elasticsearch or an older OpenSearch line, factor the upgrade path into the node layout, since rolling upgrades depend on the cluster having enough nodes to keep serving traffic while each one is restarted.
How DeployOpen scopes and delivers an OpenSearch topology design
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenSearch. For node roles and cluster topology, we start from your workloads, availability targets and hosting constraints, then turn that into a written layout that your platform and security teams can review before anything is built.
How we scope
- Inventory the expected workloads: search, log analytics, security analytics and any vector or ML use, with their data volumes and query patterns
- Confirm hosting limits, failure domains and the number of availability zones or sites available in your infrastructure
- Agree in writing which node roles are in scope, which are deferred, and what the topology document will contain before work starts
How we build
- Build the planned topology with dedicated cluster manager, data, ingest and coordinating nodes only where the workload justifies them
- Configure shard allocation awareness and replica placement so copies sit on separate nodes, following the OpenSearch cluster guidance
- Test failure scenarios such as losing a node or a zone, and record how the cluster recovers before you rely on the design
How we hand over
- Deliver a topology document covering each node role, sizing assumptions, placement rules, ports and the reasons for every choice
- Provide configuration files, inventory and runbooks in your repositories, so your team can reproduce or change the layout
- Walk your engineers through scaling steps, role changes and the checks to run before adding warm or search nodes later
How we support
- Review the topology when your workload, data retention or version plans change, including upgrades to newer OpenSearch minor versions
- Offer ongoing support, upgrades and continuous testing as a retainer, with scope agreed in writing
- Retest availability assumptions after significant changes so the documented layout still matches the running cluster

