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

Skip the stopping of an instance when 'in use' #524

Open
keithrochford opened this issue Feb 29, 2024 · 1 comment
Open

Skip the stopping of an instance when 'in use' #524

keithrochford opened this issue Feb 29, 2024 · 1 comment

Comments

@keithrochford
Copy link

keithrochford commented Feb 29, 2024

Is your feature request related to a problem? Please describe.
It would be nice to avoid stopping an instance when certain conditions are met, for exmple if a user leaves a long-running job on an instance it would be nice to skip (or defer) the stopping of that instance so that the computation would be allowed to complete.

Describe the feature you'd like
If CPU utilisation was a suitably general measure of 'in use' then there could be a tag on the instance with a CPU value and if the utilisation is above that value then the stopping of the instance is skipped.

A more general solution might be to use a tag value that includes a CloudWatch metric name, a comparison operator and a value. If this condition evaluates to true, then skip the instance.

In the most simple scenario this would mean that the instance is not stopped until the next time the schedule determines that it should be stopped thus avoiding any intermediate retry of deferred stops.

Additional context

It occurs to me that defining a maintenance window to avoid the stopping of the instance might provide a approach to solving for this however the creation of that maintenance window would have to be automated in order to avoid the overhead of setting it on an instance-by-instance basis. The duration of the window could be defined using another tag so that the user could determine a maximum time for which the stopping of the instance would be skipped..

@CrypticCabub
Copy link
Member

Hi Keith,

Thanks for the feature request. I'll take this to the team so that we can evaluate whether it would be feasible or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants