Skip to content

karraar/aws-es-autoscale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages