Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Add check on ASG activities insufficient resource #27

Merged

Conversation

alantang888
Copy link
Contributor

This want to solve #13
When hit this code.
Means already have spot instance can't provision longer then 3 mins.
So check is any activity's StatusMessage got insufficient error message.
If yes, change the launch type to on-demand.
I didn't make any record on it.
So on next check. It should auto change back to spot instance.

There are something didn't solve.

  1. Not tested with moto. They didn't implement describe_auto_scaling_groups. So no test case added.
  2. Not tested with real situation. Difficult to hit that =.="

When hit this code.
Means already have spot instance can't provision longer then 3 mins.
So check is any activity's StatusMessage got insufficient error message.
If yes, change the launch type to on-demand.
I didn't make any record on it.
So on next check. It should auto change back to spot instance.
@CLAassistant
Copy link

CLAassistant commented Mar 25, 2019

CLA assistant check
All committers have signed the CLA.

@shrinandj
Copy link
Collaborator

Thanks for doing this. This makes the minion-manager that much more robust!

@shrinandj
Copy link
Collaborator

Can you add details about "Testing Done" similar to: #21

@alantang888
Copy link
Contributor Author

Testing Done:

  • Added unit tests.
    • All activities done
    • In-progress activity don't have StatusMessage
    • Activity have insufficient resource message but already done
    • Activity have insufficient resource message

Sorry, some copy and paste error. And didn't test again after that.
@alantang888
Copy link
Contributor Author

@shrinandj any other comment??

@shrinandj
Copy link
Collaborator

I'll merge and test this. Looks like currently, the master branch is broken because of #28. I'll have a fix out for that shortly.

Thanks for your contributions @alantang888 !

@shrinandj shrinandj merged commit fc27397 into keikoproj:master Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants