Coder Social home page Coder Social logo

harryhoudini / seespot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhiyerra/seespot

0.0 2.0 0.0 12 KB

AWS Spot instance health check with termination and clean up support

Home Page: https://www.opszero.com

License: Mozilla Public License 2.0

Go 100.00%

seespot's Introduction

No longer maintained.

SeeSpot

When a Spot Instance is about to terminate there is a 2 minute window before the termination actually happens. SeeSpot is a utility for AWS Spot instances that handles the health check. If used with an AWS ELB it also handles cleanup of the instance when a Spot Termination notice is sent.

Usage

seespot -health-port=8686 -health-path=/health -app-health="https://localhost:8080/health" -cleanup-task=/path/to/cleanup.sh
$ seespot -help
Usage of ./seespot:
  -app-health string
        Application health check (default "http://127.0.0.1:8080/health")
  -cleanup-task string
        Script to run upon termination
  -health-path string
        Default health path the Load Balancer hits (default "/health")
  -health-port string
        Default health port to use with Load Balancers (default ":8686")

This should be run within an upstart or systemd unit file.

Description

SeeSpot watches for a termination notification every 5 seconds and upon notification closes off the health check on the application and initiates the cleanup tasks. If no termination notice is found then it continues to run.

This provides the following:

  • Make sure there are not new connections being made while the instance is going down.
  • Take care of removing machine from ELBs via the health check.
  • Take care of the Application health check.

Project of Acksin

Acksin is building DevOps tools to help you Innovate Fast while Being Green. Check out some of our tools: Acksin, ParkingSpot, opsZero. We also offer Consulting Services for your DevOps needs.

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

seespot's People

Contributors

abhiyerra avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.