Machine: fallback if Spot request cannot be fullfilled

Created on 9 Oct 2018  路  8Comments  路  Source: docker/machine

We are facing quite often that AWS is not able to fullfill the spot request - leaving the setup in a broken state.

Status: capacity-not-available: There is no Spot capacity available that matches your request.

Now docker-machine should but does not provide a logic to fall back to on-demand instances in that case.

Please consider this feature as it renders spotting impossible to use in production grade systems

Most helpful comment

There's also the ability to use aws fleet: a list of machine types (m4, m5) with a bid price and have one of this instance type if one is not available.
--machine-machine-options "amazonec2-instance-type=m4.2xlarge,m5.2xlarge"` for example.

All 8 comments

Would love to see such a feature - spot instances could be used for much more use cases

Facing same issue. Would be a cool enhancement!

+1 - Have the exact same use case. Would be very helpful.

There's also the ability to use aws fleet: a list of machine types (m4, m5) with a bid price and have one of this instance type if one is not available.
--machine-machine-options "amazonec2-instance-type=m4.2xlarge,m5.2xlarge"` for example.

@Adriks976 Can you please shed more insight how you are able to make that work?
On my setup this is creating following error:

Invalid value 't3.large,t3.medium' for InstanceType....

No I was suggesting to have this feature with a list of instance type. There鈥檚 no way for now to handle this. Let鈥檚 hope that docker machine will soon deal with this feature.

A proper EC2 Spotfleet is actually a spotfleet request ID: sfr-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Which corresponds to a Spotfleet, which dictates VPC, subnet, IAM role etc and instance types.

You can even mix and match on-demand and spot in the same fleet, it would solve this original issue's problem of exhausted spot-instances. (Or try to anyway)

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html

You can even mix and match on-demand and spot in the same fleet, it would solve this original issue's problem of exhausted spot-instances. (Or try to anyway)

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html

+1

Was this page helpful?
0 / 5 - 0 ratings