consul-gc

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2017 License: MIT Imports: 11 Imported by: 0

README

consul-gc

Build Status Docker Repository on Quay

consul-gc is a small daemon service that helps cleanup failed/lost Consul servers when running a Consul cluster within an AWS Auto Scaling Group. The need for consul-gc came from our attempts at running Consul in a kubernetes Deployment/StatefulSet but it should work in any EC2 cluster within an Auto Scaling Group.

Currently consul-gc takes a very opinionated view of your Consul cluster and assumes that the expected number of Consul servers is the same as the desired instance count of your Auto Scaling Group. Any additional Consul servers in the failed Serf state will be removed via the /v1/agent/force-leave api.

Configuration

Comand Line Options
Usage of consul-gc:
  -interval int
        interval between checking members (default 60)
  -v	show version
Environment Variables

Use the following environment variables for the consul agent connection:

  • CONSUL_HTTP_ADDR
  • CONSUL_HTTP_TOKEN
  • CONSUL_HTTP_AUTH
  • CONSUL_HTTP_SSL
  • CONSUL_HTTP_SSL_VERIFY

These varaibles are used directly by the Consul Go api, so we recommend checking the consul docs for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL