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

Fix EC2 instance lifecycle #1624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abarre
Copy link
Contributor

@abarre abarre commented Nov 15, 2021

This commit ensures that EC2 instances are correctly set to offline before being shutdown.
I notice multiples bugs on this logic :

  • EC2 instances flagged as offline was receiving tests (fix in getwork.php)
  • Offline EC2 instances was not correctly reset to online when the server requires more machines (fix in ec2.inc.php on GetTesters call
  • The server was terminated EC2 instances that was not offline.
  • ping.php was wrongly resetting the « last work » timestamp and was blocking EC2 shutdown.

This commit ensures that EC2 instances are correctly set to offline before being shutdown.
I notice multiples bugs on this logic :
- EC2 instances flagged as offline was receiving tests (fix in getwork.php)
- Offline EC2 instances was not correctly reset to online when the server requires more machines (fix in ec2.inc.php on GetTesters call
- The server was terminated EC2 instances that was not offline.
- ping.php was wrongly resetting the « last work » timestamp and was blocking EC2 shutdown.
@abarre
Copy link
Contributor Author

abarre commented Jun 10, 2022

Hello, do you need more information to evaluate this PR ?

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.

1 participant