Skip to content

pySilver/consul-zombie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-zombie

Find and kill consul zombie services.

If you fail to deregister consul services and health checks it can be nice to have a tool to prune the dead from the living. This is especially true if you are deploying in a container environment where every service gets a fresh and unique ID.

Install by cloning the repo and running ./build.sh

There are three invocations of this tool:

Command Description
zombie Get a little help
zombie [opts] hunt List services that match your search terms, dead or alive
zombie [opts] kill Repeat the search from the hunt above but kill those services that fail at least one health check

Available options:

Option Description
-f Force killing of all matches, including healthy services
-s string Limit search by service address (regexp)
-t string Limit search by tag
-local-addr string Address with port of "local" agent to use to retrieve service list from (defaults to value of CONSUL_HTTP_ADDR env var)
-remote-port int Port to use when connecting to remote agents. Defaults to 8500
-token string ACL token to use in all API requests
-v Verbose
-vv Increased verbosity
-vvv Super verbosity

About

Hunt and kill consul zombie services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.3%
  • Shell 1.7%