Skip to content

Fix: Handle Controller Restarts#337

Merged
Zakaria-Kofiro merged 2 commits intomasterfrom
zkofiro/controller-restart-experiment
Jul 18, 2024
Merged

Fix: Handle Controller Restarts#337
Zakaria-Kofiro merged 2 commits intomasterfrom
zkofiro/controller-restart-experiment

Conversation

@Zakaria-Kofiro
Copy link
Collaborator

@Zakaria-Kofiro Zakaria-Kofiro commented Jul 18, 2024

Fix: Handle Controller Restarts
When the Tank controller restarts, it maintains connectivity to its running agents via findAgent() which creates an ec2client per region to pull instance data. This allows the controller to pull each agent's instance URL to send agent commands (start, stop, pause, and kill). Previously, it only did this for a single region (getConfiguredRegions()) - the region the controller was in - resulting in failed calls to agents in other regions. This fixes this issue by looping through all available agent regions (getRegions()), and thus has no issue in connecting to any running agents after a controller restart.

Please make sure these check boxes are checked before submitting

  • ** Squashed Commits **
  • ** All Tests Passed ** - mvn clean test -P default

** PR review process **

  • Requires one +1 from a reviewer
  • Repository owners will merge your PR once it is approved.

@Zakaria-Kofiro Zakaria-Kofiro marked this pull request as ready for review July 18, 2024 18:37
@Zakaria-Kofiro Zakaria-Kofiro merged commit 3c02436 into master Jul 18, 2024
@Zakaria-Kofiro Zakaria-Kofiro deleted the zkofiro/controller-restart-experiment branch July 18, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants