Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'force reconnect' feature to agent_simulator #3111

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

Selutario
Copy link
Contributor

@Selutario Selutario commented Jul 19, 2022

Related issue
#3093

Description

A new system has been added to the Wazuh master node that reconnects agents of a cluster when it is unbalanced.

Large-scale tests (50,000 agents) will be required. For them, wazuh-qa's agent_simulator tool is used. It is important that said simulator is able to restart the connection with the manager so that the balancer can redistribute them.

Therefore, this PR adds the reconnect option to agent_simulator, which is a cornerstone of how the new rebalancing system works.

Added

  • Agent_simulator now processes the #!-force_reconnect message and restarts the connection.

Testing performed

Tester Test path Jenkins Local OS Commit Notes
@Selutario (Developer) ⚫⚫⚫ 🟢 🟢 🟢 Ubuntu 20.04 Nothing to highlight
@juliamagan (Reviewer) test_active_response/ (Manager) 🟢 🟢 🟢 🚫 🚫 🚫 CentOS 5e72428 Nothing to highlight
@juliamagan (Reviewer) test_rids/ 🟢 🟢 🟢 🚫 🚫 🚫 CentOS 5e72428 Nothing to highlight
@juliamagan (Reviewer) test_rootcheck/ 🟢 🟢 🟢 🚫 🚫 🚫 CentOS 5e72428 Nothing to highlight
@juliamagan (Reviewer) test_remoted/ 🟢 🔴 🟢 🚫 🚫 🚫 CentOS 5e72428 Not related to development

@Selutario Selutario self-assigned this Jul 19, 2022
@Selutario Selutario added tool/agent-simulator Development that involves modifying the agent-simulator script/tool type/enhancement labels Jul 19, 2022
@Selutario Selutario linked an issue Jul 19, 2022 that may be closed by this pull request
juliamagan
juliamagan previously approved these changes Jul 22, 2022
Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmv74211 jmv74211 merged commit 83024e2 into master Jul 26, 2022
@jmv74211 jmv74211 deleted the feature/3093-force-reconnect-agent-simulator branch July 26, 2022 07:59
@jmv74211 jmv74211 added type/qa-pull-request and removed team/qa tool/agent-simulator Development that involves modifying the agent-simulator script/tool labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add reconnect capability to agent-simulator
3 participants