Adding Wazuh indexer nodes and rebalancing shards

Adding a Wazuh indexer node gives the cluster more capacity, but existing indices only use it once shards move or are rebuilt. This page explains the steps, the trade-offs and the work involved.

On this page

When adding Wazuh indexer nodes is the right fix

Adding indexer nodes helps only when the cluster can place shards on them. A new node with free disk, heap and CPU does nothing for a cluster whose existing indices are set to live on nodes that are already full, and a team that expands without checking shard placement often ends up with the same warnings and a larger bill. The first question is therefore not how many nodes to add but whether the cluster has somewhere to put the shards it already holds. In the Wazuh component model, the Wazuh indexer is the full-text search and analytics engine that stores the alerts the Wazuh server produces from agent data. The server analyzes and decodes events, the dashboard reads from the indexer, and the agents on endpoints supply the data. Because the indexer is where alerts accumulate, most capacity pressure you will see on the dashboard originates there.

Disk exhaustion, heap pressure and slow searches have different causes, and each calls for a different fix. Disk pressure is usually a retention question: the amount of data kept is larger than the storage allocated to it, so adding nodes buys time but does not change the growth curve. Heap pressure often comes from too many shards per node, which points to shard count and index design before hardware. Slow searches can come from query patterns, from hot data sitting on the same hardware as older data, or from a cluster that is simply undersized. Before you commit to expansion, confirm which of these you are seeing by reviewing node statistics, shard allocation and index age, and by checking the retention settings that decide how much data the cluster holds. Adding nodes is the right fix when the data you must keep and search is larger than the cluster can hold and the existing nodes have room to accept shards from the new ones.

Which problem adding a node actually solves

Disk pressure, slow searches, weak failure tolerance and hot-warm placement all lead teams to add an indexer node, but each needs a different fix. A new node only helps when shards can move to it, so the right move depends on how your indices are sharded and replicated today.

Disk pressure on existing nodes

A new node adds storage capacity, and shard reallocation can move data onto it once the cluster accepts the node. It does not shrink indices, delete old alerts or reduce how much each alert takes on disk. Check disk usage per node, the largest indices, and whether retention policies are already removing old data before you buy hardware. Confirm allocation rules first, because a node that is excluded or lacks the right attributes will receive nothing.

OpenSearch cluster guide

Slow search and dashboard queries

More nodes spread shards across more CPU and memory, which can reduce query latency when the slowness comes from concurrent load on busy nodes. It does not help when a few oversized shards or expensive queries dominate the work, because one shard still runs on one node. Compare query times against shard sizes and the number of shards per node before expecting improvement.

Node failure tolerance

Replicas protect data only when a copy sits on a different node from its primary. A new node gives the cluster room to place replicas elsewhere, but it does not create replicas that were never configured. Confirm the replica count on each index and test a single node stop in a non-production cluster to see whether the cluster returns to green.

Hot-warm placement

Hot-warm needs nodes labeled with a node attribute, so recent data stays on fast storage and older indices move to cheaper nodes. Adding a plain node without that attribute does not create a warm tier. Decide which data must stay fast, then plan the attribute, the policy and the replica changes on warm data together.

Shard layout decides the fix

Whether a new node helps depends on how many primary shards each index has, how many replicas it keeps and how evenly shards sit today. Shard counts of an existing index cannot be changed in place, so a layout problem may need re-indexing rather than a node. Review the shard and replica planning guidance before you order hardware, and bring the current per-index shard counts to that review.

How the cluster places shards on new nodes

When you add a Wazuh indexer node, it joins the existing cluster and begins to receive shards over time. The cluster's allocator decides which shards move to the new node, based on the shard load on each node and the allocation rules in effect. Existing indices keep the primary shard count they were created with. Adding a node changes where shards live, not how many primary shards an index has. The shard count is fixed per index, so moving shards to a new machine is a different operation from changing the number of shards, which requires creating a new index and re-indexing the data.

The Wazuh indexer is built on OpenSearch-derived software, and the OpenSearch FAQ states that OpenSearch is a fork of open source Elasticsearch 7.10. Cluster behavior such as allocation, relocation and the handling of cluster settings therefore generally follows OpenSearch conventions. Do not assume the details match exactly, though. Confirm allocation settings, default thresholds and the commands that report shard placement against the Wazuh indexer version you run, using the documentation for that release. Note the indexer version before you change anything so that your test results and your notes refer to the same behavior.

Before you rely on the new node, check the shard distribution after it joins and confirm that shards are relocating and that none remain unassigned. Watch disk use on the new node and on the others, because allocation decisions depend on available space. Plan for the relocation traffic to add load while it runs, and schedule it outside peak alert ingestion where you can. If you want new daily indices to spread evenly across the larger cluster, the shard settings that control this belong to the index design covered in the shard and replica planning section, not in this step.

Options for expanding the indexer cluster

This table compares four ways to grow the Wazuh indexer cluster: adding data nodes, adding dedicated master-eligible nodes, moving to hot-warm attributes and changing shard counts through re-indexing. Read each row for what the option fixes, what it costs in effort and what to confirm before you choose it.

OptionWhat it fixesEffort and costConfirm before choosing
Add data nodesDisk space, indexing throughput and search load when shards are unevenly spread or nodes are near capacityNew hosts, certificates for each node, cluster settings review and shard reallocation that moves data over the network. Hardware or cloud capacity is a recurring cost.Current disk and heap usage per node, shard count per node, and whether the new node's certificate covers its hostname and IP
Add dedicated master-eligible nodesCluster stability when the existing master-eligible nodes are overloaded or when the cluster has too few voting nodes for quorumTypically a small number of additional nodes that hold no data. Requires certificate planning and a deliberate change to the cluster's initial master nodes list during setup.Whether the cluster has an odd number of master-eligible nodes after the change, and that the version and certificate layout match the existing nodes
Move to hot-warm attributesCost of storing older alerts on fast disks by moving aging indices to cheaper nodesNode attributes on the new nodes, a policy that moves indices between tiers, and replica changes on warm data. Adds ongoing policy tuning.That your retention and search needs for older data allow slower queries, and that the warm storage meets the performance you need
Change shard counts through re-indexingShard sizes or counts that no longer fit the node count, such as too many small shards or shards too large to move comfortablyThe shard count of an existing index cannot be changed in place. A new index with the desired settings is created and the data is copied, which is the most time-consuming option on large indices.Index sizes and current shard counts, the gap in search during the copy, and whether index templates will apply the new settings to future indices

Adding a node to a running indexer cluster

This sequence adds one indexer node to a live Wazuh cluster without disrupting alert search, and ends with shards spread across all nodes and the cluster reporting healthy.

  1. Confirm cluster health and current backups

    Before touching the cluster, the operator checks the cluster health endpoint and confirms the cluster reports green, with no unassigned or relocating shards left over from earlier work. They also confirm that a recent snapshot of the indices exists and that it has been restored in test at least once, so a failed expansion has a known way back. Record the node count, the current shard distribution and the indexer version on every node. The step is done when the health status, node list and snapshot record are written down and the team agrees the cluster is stable enough to change. Ask your team which backup procedure applies to your deployment, since the snapshot setup is covered in its own topic.

  2. Generate certificates for the new node

    Issue a certificate for the new indexer node from the same certificate authority that signed the existing nodes, using the certificate tooling and the node names and IP addresses in your inventory. Certificates that do not chain to the existing CA will stop the node from joining, so the CA must be the same one, not a new one created for this node. Copy the new certificate and key to the new host with restrictive file permissions. The step is done when you can verify the chain against the existing CA certificate and the node's subject matches its hostname. Check the exact certificate commands and file locations in the Wazuh documentation for your release.

  3. Install the matching indexer version

    Install the Wazuh indexer package on the new host at the same version as the existing nodes. Mixed versions in one cluster are a common cause of join failures and are not a supported way to run the cluster during normal operation. Confirm the package version on an existing node first, then match it exactly on the new host. Do not start the service yet. The step is done when the package manager reports the installed version and it matches the other indexer nodes. The installation steps and package names are in the Wazuh deployment documentation for your platform.

  4. Set cluster and node settings

    Edit the indexer configuration on the new node so it names the same cluster and lists the existing nodes as discovery peers, with the new node's own network address and certificate paths. Confirm that the cluster name is identical to the other nodes, that the node roles match your plan, and that the JVM heap setting is planned for the new host's memory. Settings that differ from the rest of the cluster are a frequent reason a node starts but never joins. The step is done when the configuration file has been reviewed against a checklist and a second person has read it. Exact configuration keys should be taken from the Wazuh documentation rather than copied from another cluster.

  5. Start the node and verify it joins

    Start the indexer service on the new node and watch its log for certificate, discovery and cluster-formation messages. Then query the cluster health and node listing from an existing node. The new node should appear in the node list, and the total node count should increase by one. If it does not appear within the window your team has set, stop and read the log before retrying, because repeated restarts can make a partial join harder to diagnose. The step is done when the cluster reports the expected node count and the new node is listed with its role. Expect the cluster to show some shards initializing or relocating at this point, which is normal.

  6. Check shard allocation and rebalance

    Once the node has joined, review how shards are distributed across all nodes, including the new one. A new node usually receives few or no shards until the cluster allocates to it, and shard counts that were set for the old node count may leave it underused. Check the allocation settings and the shard distribution view for each index. Rebalancing moves existing shards to the new node, which adds network and disk load, so watch health and node resource use while it runs. The step is done when shards are spread across nodes and the cluster health returns to green. If the distribution stays uneven because the shard count itself is too low, the fix is a planned re-index, covered later in this topic.

Certificates and cluster settings for new nodes

A new indexer node has to present certificates that the existing cluster trusts. Transport certificates secure node-to-node traffic, and HTTP certificates secure the API and the connection from the Wazuh dashboard. Both should be signed by the same certificate authority that issued the certificates for the existing nodes. Reuse the CA files from the original deployment, generate a key pair and certificate for the new node, and keep the CA private key on the host where it was first created or in your approved secrets store.

  • Same CA chain: Sign the node certificate with the existing root CA. A certificate from another authority fails the trust check during the transport handshake, and the node never joins.
  • Key ownership and permissions: Make the indexer service user the owner of the private key, and restrict read access so other local accounts cannot use it.
  • Separate transport and HTTP certificates: Confirm which certificate and key pair each setting in opensearch.yml references, since the two layers are configured separately.
  • Admin and security configuration: Check whether the security configuration on the cluster lists distinguished names that the new node's certificates must match, and update it through the documented process if needed.
  • Chain validation before start: Verify the chain against the CA with openssl verify before starting the service.

Before starting the new node, confirm the certificate chain validates and that the file paths in the configuration point to the files you just checked.

Rebalancing shards without losing search coverage

After a new indexer node joins, the cluster moves shards onto it on its own, but the pace of that movement is not something you should leave unexamined. Allocation settings control how many shards can move at once and how many can recover concurrently on each node. Disk watermarks decide when a node is considered too full to receive more data. Because these thresholds differ between OpenSearch-based releases, confirm the exact setting names, defaults and watermark behavior for your Wazuh indexer version in the vendor documentation before you change anything in production. Relocation reads from existing nodes and writes to the new one, so heavy movement during business hours adds disk and network I/O that analysts will feel as slower searches and dashboard load.

Schedule the expansion for a low-activity window, and set allocation limits deliberately so rebalancing finishes within that window without starving search and ingestion. During the move, watch shard states in the cluster health output and the shard allocation view. Shards in initializing or relocating states are expected for a while, but shards stuck in unassigned states, or a rising count of unassigned primaries, mean coverage is at risk and the cause needs to be found before you continue. Keep the cluster health status and the count of relocating shards in your monitoring so a stalled move is visible.

Once movement settles, check that replicas of the same shard are not all on one node. A replica placed beside its primary gives no protection if that node fails, so verify the placement of primaries and replicas across nodes and confirm that the allocation awareness or node attribute rules you rely on are being honored. If placement is uneven, confirm the relevant allocation settings with the vendor documentation for your version rather than forcing moves by hand. Record the before and after shard layout so the change is auditable.

How a new node joins and receives shards

The flow starts with a certificate issued for the new node, then the node starts with the cluster settings and joins the existing cluster. The cluster manager then allocates shards to it, and the rebalancer moves shards toward even use of capacity. The decision point at the end matters: existing indices keep their original shard count, so if their layout concentrates data on the old nodes, re-indexing is the only way to spread that data across the new capacity. Check cluster health and shard placement at each hand-off.

Steps a new indexer node takes from certificate issue to receiving shards.

When adding nodes requires re-indexing to use them fully

A new indexer node only helps if there are shards on it to move. The cases below are the ones where adding capacity alone leaves the cluster unbalanced, so the layout itself has to change first.

Too few primary shards

An index created with a small number of primary shards can only spread across that many nodes, whatever the cluster size. If a busy wazuh-alerts index holds fewer primaries than you now have nodes, the new node sits mostly idle while the old ones stay hot. Check the primary count per index against the node count before you add hardware, and confirm how your Wazuh version sets shard counts for new daily indices.

**Primary shard count is fixed**

The number of primary shards cannot be changed on an existing index in place. Raising or lowering it means creating a new index with the target layout and copying the documents across, which is re-indexing. Plan this as a separate change with its own window, not as part of the node addition, and confirm the procedure with your Wazuh version's documentation before you start.

Mapping changes that need a new index

Field types in an existing index are generally fixed once documents are written. If a new decoder or rule needs a field mapped differently, adding nodes does not fix it, and the affected data must move to an index with the corrected mapping. Review custom fields in your rules before a capacity change, so the mapping work is not discovered during the same maintenance window.

Layouts chosen for a smaller cluster

Shard counts and replica settings chosen when the cluster had three nodes can leave shards unevenly placed after growth to five or six. Replicas can also cap how many copies sit on separate nodes. Compare the current shard allocation with the node list, then decide which indices need a new layout and which only need allocation settings adjusted.

Search gaps during the rebuild

Re-indexing copies data while the source index keeps receiving alerts, so the cutover must handle writes that arrive during the copy. Dashboards and saved searches may point at a changing index name, and alerts can be missed or duplicated if the switch is not controlled. Agree on the cutover method, the alias or pattern change and who watches search results during the work.

Shard and replica planning first

Choosing the target shard and replica counts is a separate decision from adding nodes, and it sets the cost of any re-indexing. Read the planning guidance before you choose a layout, then use the reindexing guidance for the copy itself, including how long large indices take.

Questions teams ask before adding indexer nodes

How much effort does adding a Wazuh indexer node take?

Adding a node is a bounded task, but its effort depends on how much preparation the cluster needs. The work covers issuing certificates for the new node, preparing its operating system, memory and storage, joining it to the cluster, and watching shard reallocation finish. Effort rises when the cluster is already under load, when the node's hardware differs from existing nodes, or when the change must pass a formal review. Ask any partner for a written breakdown of these steps, the environments they will test in, and which of them your own team would perform.

What drives the cost of adding indexer nodes?

Three cost components dominate: staff time, hardware or cloud capacity, and the change window. Staff time covers planning, certificate handling, configuration, validation and monitoring. Capacity is recurring if you run nodes in a cloud account or lease rack space, and one-time if you buy servers. Change windows add cost when work must happen outside business hours or wait for a board of change approval. In a quote, ask which items are one-time, which recur, and which depend on the capacity you already have.

Can our in-house team add Wazuh indexer nodes without a partner?

Yes, if your team already administers Linux, TLS certificates and the Wazuh indexer, and has a test cluster to rehearse on. The steps are documented in the Wazuh documentation, and the hardest parts are usually certificate handling and verifying that the cluster is healthy before and after the change. A team new to the indexer should expect a learning curve and a slower first change. Consider a partner when no one has run a multi-node change before or when the production window is tight.

How long does shard rebalancing take after a node joins?

Rebalancing duration depends on how much data must move, how fast the storage and network are, and how many shards the cluster carries. The new node receives shards only as the cluster allocates them, so a large index set can keep the cluster busy for an extended period. Throttling settings control how aggressively shards move, and lowering them protects search and ingestion during the move. Confirm the expected duration by testing on a copy of your data, and monitor shard state until every shard reports as started.

What does the work require from our side?

The work needs administrative access to the indexer and the hosts, a plan for issuing and distributing node certificates, and a current backup before any change. A test cluster that mirrors production settings lets you rehearse the change and measure rebalancing behavior. You also need named owners for the change window, monitoring during rebalancing, and rollback decisions. Confirm with your provider which accounts, network paths and approvals they require before work starts.

Does adding a node fix an existing shard layout problem?

Not by itself. A new node gives the cluster more places to put shards, but the number of primary shards in an existing index is fixed when the index is created. If shard counts are wrong for your data volume, adding nodes will not spread the load evenly, and changing primary shard counts requires re-indexing. Review shard and replica counts before expanding the cluster so you know whether the new node will be fully used.

When is it worth bringing in a partner for indexer expansion?

A partner is worth involving when the cluster holds security-relevant alert data that must stay available during the change, when the change window is short, or when your team lacks recent experience with indexer clusters. DeployOpen plans, implements, hardens, backs up and documents self-hosted open-source platforms inside your own infrastructure, so the work can be scoped in writing before it starts. Ask for a fixed-scope proposal that names the test cluster, rollback steps and the verification you will receive.

How DeployOpen scopes indexer expansion work

Expansion work starts with a written, fixed-scope agreement that names the nodes to be added, the cluster version, the certificate approach, the target shard layout and the acceptance checks. DeployOpen does not begin changes to a production indexer until scope, deliverables and timelines are agreed in writing. Because the work touches the storage tier that holds your alerts, the agreement should also state the change window, the rollback point and who on your side approves each step. Ask for these items in any quote so that you can compare partners on the same terms.

Before any node is added, DeployOpen reviews the current cluster and shard layout. That review covers node roles and heap settings, the number of primary shards and replicas per index, disk usage and watermark thresholds, the current shard allocation and whether any indices need re-indexing to benefit from new nodes. The output is a written finding set that tells you which changes are settings only and which require new indices or a reindex. Confirm the Wazuh and OpenSearch versions in your environment with the vendor documentation before the review, since certificate and settings behavior depends on them. The work then proceeds inside your own cloud accounts, data centers or air-gapped network, with your team holding the credentials and approving each change.

Verification and documentation close the engagement. DeployOpen checks cluster health, shard distribution, replica state and the dashboard's search behavior after each step, and records the configuration, certificates and procedures so your operators can repeat them. Retainers for ongoing support, upgrades and periodic checks are available as a separate agreement once the expansion is complete, and they are priced from their own written scope. Keep that support agreement separate from the expansion scope so that each deliverable can be accepted on its own 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.