zeek/scripts/policy/frameworks/management
Christian Kreibich a622e28eab Management framework: more resilient node shutdown upon deployment
When agents had to terminate existing Zeek cluster nodes at the beginning of a
new deployment, they so far used their internal state to look up the nodes and
fired off requests to the Supervisor to shut these down. This has a problem:
when an agent restarts unexpectedly, it has no internal state, and when it then
tries to create nodes that already exist, the Supervisor complains with error
messages.

To avoid this, the agent now tears down all Supervised nodes other than agents
and controllers. In order to do so, it first needs to query the Supervisor for
the current node status, which means there are now two such status requests: one
upon deployment, and one during get_nodes requests. In order to disambiguate
these contexts in the SupervisorControl::status_request/response transactions,
we use the finish() callback in the corresponding request state to continue
execution as needed.
2022-06-21 17:22:45 -07:00
..
agent Management framework: more resilient node shutdown upon deployment 2022-06-21 17:22:45 -07:00
controller Management framework: re-trigger deployment upon controller launch 2022-06-21 17:22:45 -07:00
node Management framework: set defaults for log rotation and persistent state 2022-05-26 12:55:10 -07:00
supervisor Management framework: control output-to-console in Supervisor 2022-06-19 01:19:54 -07:00
__load__.zeek Management framework: set defaults for log rotation and persistent state 2022-05-26 12:55:10 -07:00
config.zeek Management framework: switch default network visibilities 2022-06-08 15:00:19 -07:00
log.zeek Management framework: rename "log_level" to "level" 2022-06-21 17:22:45 -07:00
persistence.zeek Management framework: set defaults for log rotation and persistent state 2022-05-26 12:55:10 -07:00
request.zeek Management framework: add "finish" callback to requests 2022-06-21 17:22:45 -07:00
types.zeek Management framework: add a helper for rendering result vectors to a string 2022-06-21 17:22:45 -07:00
util.zeek Reorg of the cluster controller to new "Management framework" layout 2022-02-09 18:09:42 -08:00