All Projects → myENA → consul-zombie

myENA / consul-zombie

Licence: MPL-2.0 license
Hunt and kill consul zombie services.

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

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
-rate Optionally limits deregistration calls to -rate per minute. Defaults to 0, or unrestricted
-v Verbose
-vv Increased verbosity
-vvv Super verbosity
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].