libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ldipenti <...@git.apache.org>
Subject [GitHub] libcloud pull request #1207: Support for AWS EC2 Spot Instances
Date Tue, 01 May 2018 16:22:17 GMT
GitHub user ldipenti opened a pull request:

    https://github.com/apache/libcloud/pull/1207

    Support for AWS EC2 Spot Instances

    ## Basic support for EC2 Spot Instances
    
    ### Description
    
    Spot instances on AWS are a way to get cheaper nodes taking advantage of Amazon's over
capacity. The downside of using this kind of instances is that whenever AWS need the allocated
spot instances to deliver normal (on-demand) ones (at full price), it will shutdown them after
a 2 minute period, so this has to be taken into account when designing systems so they can
recover correctly.
    
    Recently, AWS was updated so that requesting Spot instances is easier than ever, the client
just to add a couple of parameters to the usual RunInstances call, immediately getting an
instance id from the API that can be treated as a normal Node.
    
    For testing purposes I added a new example script that creates t2.micro spot instances.
    
    Ref:
    * https://aws.amazon.com/blogs/compute/new-amazon-ec2-spot-pricing/
    * https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceMarketOptionsRequest.html
    
    ### Status
    
    - done, ready for review
    
    ### Checklist (tick everything that applies)
    
    - [ ] [Code linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
    - [X] Documentation
    - [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
    - [X] [ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/curoverse/libcloud ec2-spot-market

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/1207.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1207
    
----
commit f34432eda0b4bb36f8b2234befaedf144d7d7a12
Author: Lucas Di Pentima <ldipentima@...>
Date:   2018-05-01T14:07:33Z

    Support for AWS EC2 Spot Instances
    
    Ref: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceMarketOptionsRequest.html

----


---

Mime
View raw message