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

Change Spot Interruption strategy to Stop #27

Open
yaroslavvb opened this issue Jul 27, 2018 · 1 comment
Open

Change Spot Interruption strategy to Stop #27

yaroslavvb opened this issue Jul 27, 2018 · 1 comment

Comments

@yaroslavvb
Copy link
Contributor

Using settings from 1c113ee, things fail
botocore.exceptions.ClientError: An error occurred (InvalidParameterCombination) when calling the RequestSpotInstances operation: The request with type 'null' is not supported when instanceInterruptionBehavior is set to 'stop'.

However, AWS suggests it's possible with some extra settings
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html

cc @bearpelican

@yaroslavvb yaroslavvb changed the title Change Interruption strategy to Stop Change Spot Interruption strategy to Stop Aug 1, 2018
@yaroslavvb
Copy link
Contributor Author

Above happens because the action taken for a Spot Instance interruption depends on the request type (one-time or persistent) and the interruption behavior (hibernate, stop, or terminate).
A persistent Spot Instance request remains active until it expires or you cancel it, even if the request is fulfilled. If the Spot price exceeds your maximum price or capacity is not available, your Spot Instance is interrupted. After your instance is interrupted, when the maximum price exceeds the Spot price or capacity becomes available again, the Spot Instance is started (if stopped), the Spot Instance is resumed (if hibernated), or the Spot Instance request is opened again and Amazon EC2 launches a new Spot Instance (if terminated).
In summary, 'InstanceInterruptionBehavior' as 'Stop' will take effect only when the Spot Instance request is persistent.

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

No branches or pull requests

1 participant