When a single Wazuh server is no longer enough and what a cluster adds
A Wazuh server cluster splits server work across a master node and one or more worker nodes. The master holds the cluster's configuration and coordinates the group, while workers receive and analyze agent data so that capacity grows by adding nodes rather than by enlarging one machine. Teams usually reach this point when the agent count keeps rising, when event volume from existing agents pushes a single server's analysis queue behind, or when the organization needs room to add monitored estates without a redesign. Before committing, measure the current load on the single server and the trend in agent growth, and ask your vendor or partner to confirm the sizing guidance for your Wazuh release line, which is 4.14 at the time of writing.
The cluster covers only the Wazuh server tier. The Wazuh indexer, which stores and searches alerts, the Wazuh dashboard and the agents installed on endpoints are separate components with their own sizing and scaling decisions. A cluster does not make the indexer faster or the dashboard more available on its own, so a capacity review should check the indexer's storage and search load alongside the server's analysis load. The Wazuh components documentation describes how these pieces relate.
The main thing a cluster adds for day-to-day operations is remote management. The Wazuh server can manage agent configuration and agent upgrades from the cluster, so a change made on the master can reach agents without visiting each endpoint. That benefit also means configuration errors spread quickly, so the team should decide who may change shared settings and how those changes are tested before they reach the whole fleet. Confirm with your own environment which agent groups, upgrade windows and change approvals you need before the first cluster is built.
How agents, workers, the master and the indexer connect
The diagram starts with Wazuh agents on endpoints, which send events to a worker node in the cluster. Workers analyze that data with decoders and rules, then forward alerts to the Wazuh indexer, where alerts are stored. The Wazuh dashboard reads from the indexer, so it never queries the agents or workers directly. The master node sits beside this path: it handles agent enrollment and pushes configuration and upgrades to the workers. When reviewing the design, confirm which hosts each agent can reach and which node holds the cluster role.
Agents reach the master for enrollment and workers for events; the dashboard reads from the indexer.
What the master node does and what worker nodes do
The master node is the coordination point of a Wazuh server cluster. It holds the authoritative copy of the configuration that the cluster applies, and it handles the tasks that must happen once for the whole cluster rather than on every node. The Wazuh documentation describes the master as the node that coordinates the cluster, so your design should treat it as a function with a single owner, not as a spare copy of the workers. Confirm the exact division of tasks in the cluster documentation for your version before you finalize your diagrams.
- Agent registration: The master handles enrollment, so new agents register against it and receive their identity and key before they report to a worker.
- Central configuration: Agent configuration and group assignments are defined on the master and distributed from there.
- Rule and decoder distribution: Custom decoders and rules you write are placed on the master and pushed to the workers, so every node analyzes events with the same content.
- Cluster coordination: The master tracks node membership and keeps the cluster in a consistent state, which is why only one master exists.
- Remote management: Agent upgrades and configuration changes that the server manages are initiated from the master.
Before relying on this split, ask your implementation team to show you where each of these controls lives in your version and which of them stop working when the master is unavailable.
Worker nodes carry the day-to-day analysis load. Their job is to accept agent connections and events, run the decoders and rules against that data, and forward the results to the Wazuh indexer for storage and search. Adding workers is the documented way to scale a server cluster horizontally, so most of your capacity planning belongs on this tier. Workers receive their content from the master, so they should not be edited by hand.
- Receiving agent connections: Workers accept the event stream from enrolled agents, which is what makes them the target for load balancing.
- Event analysis: Decoders extract fields from raw events and rules decide which of them become alerts.
- Alert forwarding: Results are passed on to the Wazuh indexer, where alerts are stored and searched through the dashboard.
- Horizontal capacity: Adding workers increases the number of agents and events the cluster can handle, subject to the sizing of your indexer.
- Local state: Workers hold agent-facing state that must match the master, so unmanaged local edits can cause drift.
Before you size the cluster, ask for the documented guidance on agents per worker for your version and confirm how many workers your event rate needs in a test.
Because workers do the analysis and the master does the coordination, the number of workers is a capacity decision and the number of masters is a design decision. The Wazuh documentation supports scaling out with workers, but it does not give you a universal count for every environment. Your count depends on agent numbers, event rate, the types of logs you collect, rule complexity and the size of the indexer behind them. Plan the count from measured load in a pilot rather than from a fixed rule.
- Agent count: More enrolled agents means more concurrent connections and more events for the workers to decode.
- Event rate: Chatty sources such as firewalls, authentication logs and file integrity monitoring drive worker load more than idle endpoints do.
- Rule and decoder volume: Heavy custom content costs more processing time per event on every worker.
- Indexer headroom: Extra workers only help if the indexer can store and query the alerts they produce.
- Growth path: Plan for adding workers later, as covered in the cluster growth documentation.
Ask your implementation partner or the Wazuh documentation for the sizing guidance for your version, and validate the count with a load test that uses your real event mix.
The practical question for operations is what the agents experience when a node is lost. The answer depends on which node failed. Losing a worker removes one endpoint for the agents connected to it, and those agents must reconnect elsewhere. Losing the master affects tasks that depend on it, such as new enrollments and central configuration changes, while agents that already hold their keys and configuration can keep reporting. Confirm the exact behavior for your version before you write a runbook, because reconnection and failover details change between releases.
- Worker loss: Agents connected to the failed worker need another address, so failover depends on your load balancer or agent manager list.
- Master loss: Enrollment and central changes stop until the master returns, which makes backups of its configuration important.
- Recovery order: Restore the master before you make changes to workers, so that content is not pushed from a stale state.
- Monitoring: Alert on node health so that a failed worker is noticed before agents go silent for long periods.
- Testing: Rehearse a node failure in a non-production cluster and record how long agents take to resume reporting.
Before go-live, ask your team to document the failure behavior for each node role and to test it against the Wazuh version you have deployed.
Why a Wazuh cluster has exactly one master
A Wazuh cluster runs one master node and any number of workers. The master holds the authoritative copy of configuration, rules and agent registration, and workers receive that state from it. The cards below cover what that design protects, what it costs, and what to check before you plan around it.
One source of truth for configuration
The master holds the configuration, decoders, rules and CDB lists that the cluster applies. Workers receive that content from the master, so a single copy is the reference when someone asks what a node should be running. Check that all custom content lives in the master's configuration and that no one edits files directly on workers, because local edits can be overwritten or drift from the rest of the cluster.
Wazuh componentsCentral enrollment control
Agent registration is handled on the master, which issues agent keys and records which agents exist. Keeping enrollment in one place lets you control who can register an endpoint, which groups it joins and which certificates or passwords are required. Confirm where enrollment credentials are stored, who can rotate them, and how a rejected or duplicate registration is traced back to its source.
Upgrade sequencing from one node
Upgrades of the central components and agents follow an order the documentation sets out, and the master is the node that coordinates the cluster through that process. Planning the upgrade from one control point makes it easier to confirm which version each worker runs before you move agents. Check the release notes for the patch you target, and confirm the upgrade order against the current upgrade guidance before the change window opens.
Wazuh release notesAvoiding conflicting writes
If two nodes accepted configuration changes independently, the cluster could hold different rules or settings depending on which node an agent reached. A single writer prevents that split. The trade-off is that changes flow in one direction, so any operator workflow, automation or API script must target the master. Review which tools and playbooks write to the cluster and make sure they never push changes to a worker directly.
Master availability is a separate planning question
Because there is one master, its loss affects administration and enrollment even when workers keep receiving agent events. Do not assume that a worker can take over the master role. Instead, document how you would restore the master from backup, which configuration files and certificates you need, and how long your organization can tolerate no central changes. Confirm the recovery steps with your own test restore before you rely on them.
The operational cost of a second master
Running two masters would require a way to keep their configuration, agent keys and cluster state consistent, which adds replication work and new failure modes. That effort is an ongoing cost for your team or your implementation partner, not a one-time setup task. When you size the cluster, ask how the vendor's documented design handles this, and budget for testing any change to the topology before it reaches production.
How many worker nodes to plan for a Wazuh cluster
The number of worker nodes is driven by measured load, not by a rule of thumb, so plan it from the workload you will actually run. The main drivers are the number of agents, the event rate those agents produce, the number of log sources sent through the server, the volume of alerts the rules generate, and how long you need to retain data. Agent count alone does not settle the question, because a few hundred agents forwarding verbose Windows event logs can load a server more than a larger fleet sending light telemetry. This guide does not give an agent-per-worker ratio, and you should not adopt one from a forum or vendor slide. Size from your own event measurements and from the sizing guidance in the documentation for the exact version you will deploy.
Keep the Wazuh server and the Wazuh indexer sizing as two separate exercises. Workers analyze agent data with decoders and rules, so their load follows event throughput and rule complexity. The indexer stores and searches the resulting alerts, so its load follows alert volume, index count, shard layout and retention period. A cluster with enough workers can still fail under a small indexer, and the reverse is also true. Check the Wazuh components documentation for how each component scales, then measure event rate and alert rate in a pilot before you buy or allocate hosts. Ask your vendor or partner to state the assumptions behind any capacity figure they give you.
Start with the number of workers you can justify from measurements, and plan headroom for growth and for the loss of one node, so the remaining nodes can carry the agents of a failed worker. Record the agreed count in your design document along with the event rate, the date of measurement and the Wazuh version tested. Adding workers later is possible, and the steps for growing a running cluster are covered on the sibling page on adding Wazuh server nodes to a running cluster.
Cluster layout options and when each fits
This table compares three ways to lay out a Wazuh server deployment: a single all-in-one node, a master with a few workers, and a larger distributed layout. Read each row as a decision: the fit describes the situation, the trade-off names what you accept, and the confirm column lists what to check against the current Wazuh documentation and your own agent count before you commit.
| Layout | Fits when | Main trade-off | What to confirm |
|---|---|---|---|
| All-in-one | Agent count is modest, one team runs the stack, and an outage of the single host is acceptable for the monitoring window | No node separation, so agent load, indexing and dashboard share one host and one failure domain | Host sizing for expected agent count and event rate, and the backup and restore procedure for the single host |
| Single master with a few workers | Agent count has outgrown one server, and you want workers to take agent connections while the master keeps configuration and cluster control | Only one master exists, so the master is a control-plane dependency for enrollment, configuration and upgrades | Which worker roles you need, how agents reach workers, and how the master is restored if it fails |
| Larger distributed layout | Agent volume, event rate or retention needs call for separate indexer, server and dashboard hosts with several workers | More components to certify, certificate and key management across nodes, and more change control to keep workers aligned | Indexer cluster sizing, worker count against your agent growth plan, and the documented cluster steps for your release |
| Adding workers later | You start small but expect agent growth and want to add capacity without rebuilding the deployment | Adding nodes requires new certificates and moving agents, which is planned work on a running cluster | Whether your current layout supports adding workers without a full reinstall, and the agent rebalancing method you will use |
| Master availability | Your monitoring must keep running through a single host failure | There is still only one master, so recovery depends on backups and a tested restore rather than automatic promotion | Your master backup frequency, restore time target and whether your release documents a master recovery path |
| Worker count | You need more agent connection capacity than one worker provides | More workers spread agents but also raise the number of nodes that must stay in sync and be patched | Agent count per worker, headroom for growth and how you will react when a worker is lost |
Setting up the master and worker roles in order
This sequence brings up one Wazuh master, joins workers to it under a shared cluster key and certificates, and confirms that agent events reach the indexer. Each step ends with a check so a failure is caught before the next role depends on it.
Confirm the deployment method and version
Choose the installation method your team will support, such as the step-by-step installation, Docker, Kubernetes, Ansible or Puppet, and confirm it supports a distributed layout with separate master and worker hosts. Pin one release from the 4.14 line for every node, and read the official installation guide for that method before you touch a host. Done is a written record of the method, the exact version and the list of guide sections your team will follow.
Prepare hosts, time sync and network access
Provision the master, worker and indexer hosts with the operating system and resources the installation guide lists for your chosen layout. Synchronize the clocks on every node against the same time source, because certificate validity and event timestamps depend on it. Confirm that the nodes can reach each other on the cluster and indexer ports named in the guide, and that agents can reach the planned entry point. Done is a passing connectivity test between every pair of nodes that must talk to each other.
Install and verify the master node
Install the Wazuh server on the master host first, with the cluster enabled in its configuration as the guide describes, and install the indexer and dashboard if your layout places them on the same stack. Start the server and check its service status and logs for configuration errors. Done means the master reports as running, the cluster is enabled, and the node appears as the master in the cluster status command from the guide.
Generate the cluster key and node certificates
Set the cluster key in the master configuration and generate certificates for each worker, following the certificate tooling the guide provides. Copy the key and the worker certificates to the worker hosts through a channel your security team approves, and restrict their file permissions. Done is a record of which certificate belongs to which worker, and a confirmation that the key on the master and the key on each worker match exactly.
Join each worker and confirm registration
Install the Wazuh server on each worker host, enter the master address and cluster key, and start the worker service. Wait for the worker to finish its synchronization, then check the cluster node list on the master. Done is one entry per worker showing the worker as connected, with no authentication or certificate errors in the master or worker logs. Repeat this step for each worker before you add agents.
Point a test agent at the cluster
Enroll one non-production agent using the address and registration method in your installation plan, so the agent registers through the master as the guide describes. Confirm that the agent appears as active on the master and that it is assigned to a group. Done is an active test agent whose registration and reporting you can trace to the master and a named worker.
Check that test events reach the indexer
Generate a harmless, known event on the test agent, such as a local login or a file change in a monitored path, and search for it in the Wazuh dashboard. Confirm that the alert is stored in the indexer and that its agent name and source node match what you expect. Done is a findable test alert that passed through the worker and was indexed, which proves the path from agent to dashboard works before you add more endpoints.
What happens to agents when a node is lost
Agents do not all fail the same way when a Wazuh server node is lost. The outcome depends on whether the node is a worker or the master, whether a load balancer sits in front, and whether the indexer behind the cluster is reachable. Work through each case with your Wazuh version's documentation before you size the cluster or write failover settings.
A worker goes down
Agents connected to a lost worker stop sending events to it and must reconnect to another reachable node. The master keeps managing the cluster, but events from those agents are delayed or missing until they reconnect. Confirm in your version's cluster documentation how agents are redistributed, whether that happens automatically or needs a helper or manual step, and how much buffered data an agent keeps while it waits. Test this on a staging cluster with a real agent count before relying on it.
Wazuh componentsThe master goes down
The master handles agent enrollment and holds the cluster's configuration and management role, so losing it affects more than event flow. Agents that already hold keys and reach a worker may keep reporting, but new enrollments, remote configuration changes and upgrades can stop until the master returns. Ask your team what the documentation says about master recovery and whether a second master is supported in your version. Do not assume the workers can take over the master role.
A worker returns to service
When a lost worker comes back, agents do not always move back to it on their own. Rebalancing depends on the load balancer configuration and any helper that redistributes agents, so a returned node may sit idle while others stay loaded. Check whether agents reconnect after the node reports healthy, how long the node needs to rejoin the cluster and whether the cluster state is consistent before you route traffic to it.
The indexer is unavailable
The server can keep receiving and analyzing agent data while the indexer is down, but alerts cannot be stored or searched until the indexer recovers. Agents still appear to report, which can hide the gap from operators who only watch agent status. Confirm in the documentation how the server buffers or drops events during an indexer outage and what you must monitor on both the server and indexer sides to detect the gap.
A load balancer sits in front
With NGINX or HAProxy in front of the cluster, the balancer chooses which node an agent reaches, so its health checks decide how quickly traffic leaves a failed node. A balancer that keeps sending connections to a dead worker produces errors that look like agent problems. Confirm the health check settings, connection timeouts and how agents retry against the balancer address. Avoid treating any failover time as fixed until you have measured it in your own environment.
Questions buyers ask about Wazuh cluster sizing and effort
How much does building a Wazuh server cluster cost?
The self-hosted Wazuh software has no license fee, so the cost is the work and the infrastructure. Cost has three parts: the servers and storage you run in your own cloud accounts or data centers, the internal engineering time to design and operate the cluster, and any external implementation work you buy. The main drivers are the number of agents, the event volume each agent generates, the number of worker nodes, the indexer sizing that stores alerts, and how many environments you need (test, staging and production). Ask any partner for a quote built from a written scope that lists the node count, the agent count, the load balancer design and the handover items, and ask which costs recur after go-live.
How long does a Wazuh cluster build take?
Duration depends on the size of the environment and how many decisions are already made. A small cluster with agreed network paths, certificates and a load balancer is faster to build than one that needs new identity integration, network segmentation approvals, hardening and a tested failover runbook. Time is usually lost in approvals, certificate and DNS requests, and the change windows for production hosts, not in the install itself. Ask for a written timeline that separates design, build, testing and handover, and ask what the plan assumes about your change process.
What does the client team need to provide for a cluster build?
The client team provides the decisions and access that the build depends on. Expect to supply the target infrastructure and its sizing inputs, network routes and firewall rules between the master, workers, indexer, dashboard, load balancers and agents, DNS names and certificates, a place to store secrets, and named owners who can approve changes. Someone must also define the agent groups, the retention expectations and who receives alerts. If these inputs arrive late, the build slips, so agree on a responsibility matrix before work starts.
Can our own team build and run a Wazuh cluster without a partner?
Yes, if your team has Linux administration, certificate management, network and load balancer skills and time to test failure cases. Most teams that run it well have at least one engineer who owns the cluster configuration and an on-call path for agent connection problems. A partner is useful when the team lacks these skills, has no time to build a test environment, or needs independent evidence of the design for an assessment. Whichever path you choose, require a written runbook for adding nodes and for losing a node.
Is the single Wazuh master a single point of failure?
In a standard cluster, there is one master node, so it is a point of failure for cluster coordination and for the configuration it pushes to workers. If the master is down, workers can keep receiving and analyzing agent events, but you cannot change shared configuration, enroll new agents through the master or perform cluster-wide actions until it returns. Plan for this by backing up the master, keeping its configuration under change control, monitoring it separately, and testing how quickly you can rebuild it. Confirm the exact behavior for your Wazuh version in the cluster documentation before you finalize the runbook.
How many worker nodes should a Wazuh cluster run?
The number of workers depends on the agent count, the event rate per agent, the rule and decoder load, and how much headroom you want for a node loss. Measure your real event rate during a pilot, then size workers so the remaining nodes can carry the agents of a failed node at peak load. Also plan the indexer capacity, because workers feed alerts to it and an undersized indexer becomes the bottleneck. Ask any partner to show the sizing calculation, the assumptions behind it and the test that proved the headroom, rather than accepting a node count without a basis.
What happens to agents when a worker node is lost?
Agents connected to the lost worker lose their reporting path until they reconnect. Whether they reconnect automatically depends on your agent configuration, the manager addresses listed on each agent, and the load balancer health checks that route traffic away from the failed node. Test this with a planned node shutdown in a non-production cluster and measure how long reporting gaps last. Confirm the reconnect behavior and timers for your Wazuh version before you set the values.
Security and operational considerations for cluster nodes
A Wazuh cluster is only as trustworthy as the material that binds its nodes together and the people who can change it. The cards below cover the security decisions that apply to the master and worker nodes, from shared cluster secrets and certificates to network paths, API access, configuration change control and master backups. Each card names what to verify in your own environment against the current Wazuh documentation.
Cluster key and certificate handling
The cluster key is a shared secret that nodes use to authenticate to each other, and it sits in the cluster configuration on every node. Anyone who reads it from one node can join a rogue worker or impersonate a legitimate one. Confirm where the key is stored on each node, who can read those files, and how it is rotated. Certificates for the server, the indexer and the dashboard should be issued per node and tracked in an inventory so that an expired or revoked certificate is noticed before agents stop reporting.
Wazuh componentsTrust between nodes
Workers accept configuration, rules and agent state from the master, so a worker that is compromised or misconfigured can affect the rest of the cluster. Decide which hosts are allowed to hold cluster membership, and confirm that only those hosts can reach the cluster communication port. Review the list of registered nodes after every node change, and remove nodes that were retired or rebuilt, so that stale entries do not remain trusted.
Network segmentation for agent and node traffic
Agents reach the cluster from endpoints across your network, while the master and workers exchange internal traffic on separate ports. Keeping these paths apart lets you expose only the agent-facing ports to endpoint networks and keep cluster traffic on an internal segment. Map every port in use on each node, document which source networks may reach it, and check the result with a scan from an endpoint subnet. Load balancers in front of workers should sit in the same zone as the agent traffic, not the cluster segment.
Access to the master API
The master exposes an API that controls agents, configuration and upgrades, which makes it the most sensitive administrative interface in the cluster. Restrict which hosts and administrators can reach it, change the default API credentials at installation, and give each automation account only the rights it needs. Confirm that API activity is logged and that someone reviews those logs. Treat any account that can push configuration to workers as having cluster-wide reach.
Wazuh componentsChange control for cluster configuration
Configuration the master pushes to workers overwrites local edits, so a change made directly on a worker can disappear or conflict with the master's version. Agree on a single place where cluster configuration is edited, such as version-controlled files applied through a pipeline, and forbid direct edits on workers. Record who approved each change, test it on a non-production cluster first, and keep the rollback steps with the change record. Confirm the current synchronization behavior against the documentation for your release before you rely on it.
Backups of the master
The master holds the configuration, rules, agent registrations and keys that the rest of the cluster depends on, so losing it is more disruptive than losing one worker. Back up the master's configuration and key material on a schedule, store copies off the host, and encrypt them because they include secrets. Rehearse a restore onto a clean host and confirm that the workers reconnect correctly afterward. Ask your vendor or partner which files and indexer data the documented backup procedure covers, and note anything it leaves out.
Decision path from one server to a cluster
The path starts with a single Wazuh server and asks whether agent count, event volume or availability needs have outgrown it. If none has, the team stays on one server and revisits the question as the estate grows. If one has, the team chooses a layout, sizes the worker nodes against measured load, and validates the result with a test load before moving production agents. Each hand-off is a point to check, because a cluster adds nodes to operate, certificates to manage and a load balancer to configure.
Decision path from a single Wazuh server to a validated cluster.
How DeployOpen works on this
DeployOpen plans and deploys Wazuh server clusters inside the infrastructure you control, starting with a written scope that sets the node count, roles and data path before any installation. The work is then built, tested, documented and supported under the same method for every engagement.
How we scope
- Written scope fixes the master node, worker count, indexer layout and agent population before any build starts.
- We record which content the master pushes to workers and which manager settings you must copy by hand.
- Fixed-scope agreements list deliverables, test cases and milestones so you can compare a quote with your own team's effort.
How we build
- We install the master and workers with certificates issued for each node and a cluster key set under your change control.
- Agent connections are routed through NGINX or HAProxy and tested with real enrollment and reporting traffic.
- We simulate loss of a worker and the master to confirm how agents reconnect and where events land during the outage.
How we hand over
- Handover includes configuration files, cluster topology diagrams, runbooks for adding or removing a worker, and the failover test results.
- Your team receives a sync checklist covering what the master pushes, what is copied manually and who approves each change.
- We walk your operators through a node-loss exercise so they can repeat the recovery steps without us on site.
How we support
- Ongoing support, upgrades and continuous testing for the cluster are available as a retainer after handover.
- Retainers can cover Wazuh version upgrades, which follow the 4.14 patch cadence in the release notes, performed in the documented node order.
- Ask any partner to confirm which cluster, certificate and sync steps are covered in writing before you sign a scope.

