consul-zombie

command module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

Documentation

Overview

list and offer to kill dead consul services

Jump to

Keyboard shortcuts

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