Giter Club home page Giter Club logo

aws-es-autoscale's Introduction

aws-es-auto-scale

A script to auto scale an AWS ElasticSearch cluster based on storage usage (perhaps more later)

Usage: ./aws-es-auto-scale.py[OPTIONS] --domain-name <es-domain-name>
    -d, --domain-name=<es-domain-name>      ## The AWS ElasticSearch Domain Name to use.
        --min-slaves=<min-slaves-to-use>    ## Optional: The minimum number of slave nodes to use. Default: 5
        --max-slaves=<max-slaves-to-use>    ## Optional: The maximum number of slave nodes to use. Default: 50
    -p, --percent-allow=<%-slaves-to-allow> ## Optional: The % number of slave nodes to allow for growth and sharding. Default: .30
    -c, --configure                         ## Optional: Actually request cluster configuration changes.  Default false

Example output with no execute.

./aws-es-auto-scale.py --d my-stage

Using the following configuration:
DomainName:    my-stage
min-slaves:    5
max-slaves:    50
percent-allow: 0.3
configure:     False

Cluster Nodes: 8 (3 Masters and 5 Slaves).
Cluster Disk Space(GB): 250.00 Total (55.70 Used, 194.30 Available).
Cluster Slave Nodes: Currently using: 5, Need: 2, with allowance: 3, with safeguard: 5.

Example output with execute.

./aws-es-auto-scale.py --d my-stage -c

Using the following configuration:
DomainName:    my-stage
min-slaves:    5
max-slaves:    50
percent-allow: 0.3
configure:     False

Cluster Nodes: 8 (3 Masters and 5 Slaves).
Cluster Disk Space(GB): 250.00 Total (55.70 Used, 194.30 Available).
Cluster Slave Nodes: Currently using: 5, Need: 2, with allowance: 3, with safeguard: 5.
Changing Configuration...

aws-es-autoscale's People

Contributors

karraar avatar

Watchers

James Cloos avatar  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.