cristim/autospotting

Name: autospotting

Description: Automatically replace AWS EC2 instances in AutoScaling groups with identically configured but up to 90% cheaper spot instances

Created: 2016-07-19 13:27:31.0

Updated: 2018-01-18 16:52:44.0

Pushed: 2018-01-18 09:49:59.0

Homepage: https://autospotting.org/

Size: 18656

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

AutoSpotting

BuildStatus GoReportCard CoverageStatus CodeClimate IssueCount ChatOnGitter Open Source Helpers

A simple and easy to use tool designed to significantly lower your Amazon AWS costs by automating the use of spot instances.

Savings

How does it work?

When installed and enabled on an existing on-demand AutoScaling group, AutoSpotting clones one of your on-demand instances from the group with a spot instance that is cheaper, at least as large (automatically considering memory, CPU cores and disk volumes) and configured identically to it. Once the new spot instance is ready, it is attached to the group and an on-demand instance is detached and terminated to keep the group at constant capacity.

It continuously applies this process across all enabled groups from all regions gradually replacing your on-demand instances with much cheaper spot instances. For your peace of mind, you can also configure it to keep running a configurable number of on-demand instances given as percentage or absolute number.

Your groups will then monitor and use these spot instances just like they would do with your on-demand instances. They will automatically join your load balancer and start receiving traffic once passing the health checks.

The installation takes just a few minutes and the existing groups can be enabled and configured individually by using a few additional tags.

This can be seen in action below, you can click to expand the animation:

Workflow

Read here for more information and implementation details.

Frequently asked questions about the project are answered in the FAQ, please read this first before asking for support.

If you have additional questions not covered there, they can be easily added to the crowdsourced source of the FAQ and we'll do our best to answer them either there or on Gitter.

Getting Started

Just like in the above animation, it's as easy as launching a CloudFormation (or Terraform) stack and setting the spot-enabled tag on the AutoScaling groups where you want it enabled to true.

For more detailed information you can read this document

Launch

Nightly builds

The above stack installs the latest nightly build generated automatically after each commit to Github. Even though it's often relatively stable, it is meant to be used for evaluation purposes and is not recommended for production use.

These builds come with no support or warranty whatsoever, you have been warned!

Also please don't automate the download of the nightly builds, these incur some costs on a monthly basis and this may lead to them being discontinued in the future in case of abuse.

Stable builds

Carefully tested builds are available from the original author and given to patrons that contribute a fraction of 5% of their monthly savings to further development. You can become a patron by clicking here

Please get in touch on gitter if you are a Patron interested in getting access to the stable builds.

These builds also come with some technical support, the author will try to help you run AutoSpotting on your environment and your feature requests and issues will be treated with higher priority.

Compiling and Installing

It is always recommended to use the stable binaries mentioned above. But if you have some special needs, you can tweak the software then build and run your customized binaries that you maintain on your own, just keep in mind that those won't be supported in any way.

More details are available here

Contributing

This project was developed by volunteers in their own spare time. If you find it useful, please consider contributing to its development as any help would be greatly appreciated.

You can help by trying it out and giving feedback, reporting bugs, writing code, improving the documentation, assigning someone to work on it for a few hours a week, spreading the word or simply contacting us and telling about your setup.

Non-trivial code should be submitted according to the contribution guidelines

You can also contribute financially, we gladly accept tips on Patreon or Paypal. Even a small fraction of the generated monthly savings would make a huge difference to the development of the project. Please convince your organization to invest in it so they will reap the benefits of any further improvements.

Support

Community support is available on the gitter chat room on a best effort basis, and people may help you solve issues with the nightly/evaluation binaries.

The main author also offers enterprise-grade support and will do as much as possible to help you out with any issues you may have. Custom feature development as well as AWS-related consulting are also available for a fee (often proportional to less than a month worth of your savings). For more information feel free to get in touch on gitter.

Users

Autospotting is already used by hundreds of individuals and organizations around the world. Some of them we know of are mentioned in the list of notable users.

The following deserve a special mention for contributing significantly to the development effort (listed in alphabetical order):

License

This software is distributed under the terms of the MIT license. If you want it to stay like this forever, please consider contributing.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.