Agent fixes, fuku reloads
The agent fixes a bug in the api code. fuku sees the change and restarts api without a command.
Starting point
fuku runs six services. The api service has a watch rule. It starts, then crashes after four seconds.
You ask the agent
api keeps crashing, find the bug and fix itWhat happens
- The agent reads the api logs through fuku and finds an index out of range.
- The agent changes one line in main.go.
- fuku sees the change and restarts api.
- The agent checks through fuku that api stays up.
Why it helps
The agent changes only the code. fuku restarts the service and the agent reads the result from fuku.
More about this feature: Hot-Reload.