This is inital implementation where the only possible option is to
ask for spot instance, but not define SpotOptions - this can be
extended later if wanted.
How to use:
set spot: True in aws provider to enable it globally
set spot: True in host section in job metadata file to request
a spot instance for this particular host.
Additional changes:
removes stopping instance on destroy as it doesn't work with
default behaviour of spot instances + correctly handle exception when
stopping fails (previous behaviour crashed mrack)
prepares a parameters dict to be able to control what is passed to
ec2.create_instances, + partly fixes a possible regression with
SubNetId
This is only 1 commit but rebased on top of https://github.com/neoave/mrack/pull/162 (which is on top of https://github.com/neoave/mrack/pull/161 )
Spot instances are a great way how to save money for CI purposes.
https://aws.amazon.com/ec2/spot
This is inital implementation where the only possible option is to ask for spot instance, but not define SpotOptions - this can be extended later if wanted.
How to use:
spot: True
inaws
provider to enable it globallyspot: True
in host section in job metadata file to request a spot instance for this particular host.Additional changes:
Signed-off-by: Petr Vobornik pvoborni@redhat.com