Hello Team,
Greetings!
Wanted to know if there is any way to migrate agents from one master/worker to another master/worker node.
If a either one of master/worker node goes down or wazuh-manager service is restarted for some maintenance work on any of the node, agents gets migrated/moved to another available node; which works as expected. However, once the affected node is back, agents don’t relocate and the affected node sits idle.
Is there any way to achieve this? I was checking agent_control, cluster_control commands if those have such options to migrate agents but could not find such. Also checked dashboard GUI but did not find any option.
Could you please help?
Thanks,
swapnils
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/2510d40f-432d-40b3-adba-51a9e6755b1cn%40googlegroups.com.
Hello Kevin,
Thank you for your suggestion. I am already using that approach i.e. to stop & start wazuh-manager on occupied system; which results into moving almost all agents to another node.
Is there any way wherein I can move agents manually to distribute load? I do not have LB configured.
Current setup -
Two manager nodes (1 master + 1 worker ) / 3 indexers / 1 dashboard
Single FQDN is pointing to two manager IPs in DNS. (So everything works well when both the managers are live. DNS randomly sends requests to either of nodes.)
Query -
I had checked the document you shared earlier while building the setup but I was uncertain about the functionalities.
LB will distribute load in normal case (as it is doing in existing DNS hack). But during the back-end maintenance at manager(s) level, how nginx will move agents from one manager to another manager? Won’t it taint Wazuh’s own algorithm?
I may be completely wrong but will nginx’s configuration and Wazuh’s own cluster configuration go hand in hand?
Apologies if I am sounding vague!
Regards,
swapnils