Sign inSign up

sierrasoftworks/stablehand

By sierrasoftworks

Updated about 10 years ago

A tool to help keep your Rancher server clean in production environments

Artifact
Image
0

6.9K

sierrasoftworks/stablehand repository overview

Stablehand

A cleanup tool for Rancher servers

Stablehand is a tool designed to keep your Rancher server in a nice, clean, maintanable state under production conditions (read: when an autoscaling group is destroying your hosts).

It is intended to be run on a cron schedule to deactivate, remove and purge hosts which meet certain conditions. You would, for example, run it with the following crontab.

# Deactivate hosts which are in the reconnecting state every 15 minutes
*/15 * * * * stablehand deactivate --state reconnecting

# Remove hosts which are in the inactive state on the hour
0 * * * * stablehand remove --state inactive

# Purge hosts which are in the removed state at midnight
0 0 * * * stablehand purge --state removed

man stablehand

NAME:
   Stablehand - A tool to help you keep your Rancher server clean in production
USAGE:
   debug [global options] command [command options] [arguments...]
   
VERSION:
   1.0.0-dev.000000
   
AUTHOR(S):
   Benjamin Pannell <[email protected]> 
   
COMMANDS:
     list        
     deactivate  [HOST_ID]
     remove      [HOST_ID]
     purge       [HOST_ID]
     help, h     Shows a list of commands or help for one command
GLOBAL OPTIONS:
   --server value  The URL of your Rancher server [%RANCHER_SERVER%]
   --key value     The access key used to sign into your Rancher server [%RANCHER_ACCESS_KEY%]
   --secret value  The secret key used to sign into your Rancher server [%RANCHER_SECRET_KEY%]
   --help, -h      show help
   --version, -v   print the version
   
COPYRIGHT:
   Sierra Softworks © 2016

Tag summary

Content type

Image

Digest

Size

2.4 MB

Last updated

about 10 years ago

docker pull sierrasoftworks/stablehand