add worker-node to docker deployment

32 views
Skip to first unread message

doc dodo

unread,
Mar 6, 2026, 4:49:36 AMMar 6
to Wazuh | Mailing List
Hello,
Can I add worker node to docker deployment?
If I start another worker node then it start work, but all agent is connected to master and worker1. Worker2  is not in use.

Message has been deleted

Alejandro Ruiz Becerra

unread,
Mar 6, 2026, 6:00:26 AMMar 6
to Wazuh | Mailing List
Hi there!

As per your message, I understand that you want to add a new Wazuh Manager Worker node. I'm emphasizing this because the Indexer is also a cluster, and therefore can be extended or shrinked by adding/removing new nodes.

Did you add the new worker node to the nginx.conf file?

doc dodo

unread,
Mar 6, 2026, 6:43:21 AMMar 6
to Wazuh | Mailing List
Yes, I added worker2:
    upstream mycluster {
        hash $remote_addr consistent;
        server wazuh.master:1514;
        server wazuh.worker:1514;
        server wazuh.worker2:1514;
    }

In ossec.conf (/opt/wazuh-docker/multi-node/config/wazuh_cluster/wazuh_worker2.conf)
  <cluster>
    <name>wazuh</name>
    <node_name>worker02</node_name>
    <node_type>worker</node_type>
    <key>397f2bc2849139592be7ae966d0c141d</key>
    <port>1516</port>
    <bind_addr>0.0.0.0</bind_addr>
    <nodes>
        <node>wazuh.master</node>
    </nodes>
    <hidden>no</hidden>
    <disabled>no</disabled>
  </cluster>

And added volumes in docker-compose:
  worker-wazuh-api-configuration2:
  worker-wazuh-etc2:
  worker-wazuh-framework2:
  worker-wazuh-queue2:
  worker-wazuh-var-multigroups2:
  worker-wazuh-integrations2:
  worker-wazuh-active-response2:
  worker-wazuh-agentless2:
  worker-wazuh-wodles2:
  worker-filebeat-etc2:
  worker-filebeat-var2:

New container started without errors, but agents connected onlt to manager and worker01.


пятница, 6 марта 2026 г. в 14:00:26 UTC+3, Alejandro Ruiz Becerra:

doc dodo

unread,
Mar 6, 2026, 8:22:22 AMMar 6
to Wazuh | Mailing List
Problem was resolved after manual adding configs to  worker-wazuh-etc2 and  worker-wazuh-integrations2.

пятница, 6 марта 2026 г. в 14:43:21 UTC+3, doc dodo:

Alejandro Ruiz Becerra

unread,
Mar 6, 2026, 8:35:01 AMMar 6
to Wazuh | Mailing List
Great news
Reply all
Reply to author
Forward
0 new messages