Fleet sometimes abandons units in a failed or inactive state. Tranquility detects those units and tries to restart them.
This utility is intended to be run on a timer inside a fleet cluster.
Check for invalid units:
docker run -it -v /var/run/fleet.sock:/var/run/fleet.sock pulcy/tranquility:latest check
Fix invalid units:
docker run -it -v /var/run/fleet.sock:/var/run/fleet.sock pulcy/tranquility:latest fix
A sample configuration for J2 can be found in config.
To use it, run:
j2 run -j config/tranquility.hcl -c <yourcluster>