Jon Siwek
7669f560d1
Integrate Supervisor code review suggestions
2020-07-09 13:56:11 -07:00
Jon Siwek
10709c627b
Add Supervisor::{stdout,stderr}_hook
...
These allow capturing/handling the stdout/stderr of child processes
via Zeek scripts.
2020-07-07 20:21:32 -07:00
Jon Siwek
fdfd729206
Add note that Supervisor script APIs are unstable until 4.0
2020-01-27 13:51:01 -08:00
Jon Siwek
bbdf5f8938
Move supervisor control events into SupervisorControl namespace
2020-01-22 13:28:20 -08:00
Jon Siwek
8247c42368
Add Supervisor documentation
...
Minor additions/changes to improve API I noticed along the way
2020-01-17 18:36:32 -08:00
Jon Siwek
1972190b89
Add supervisor btests
2020-01-16 19:21:53 -08:00
Jon Siwek
4d712d6203
Cleanup minor Supervisor TODOs
...
e.g. Mainly making default parameter for restart/destroy/status API
calls to operate on all nodes.
2020-01-14 13:41:46 -08:00
Jon Siwek
0ff99c3df8
Separate supervisor node config and status data structures
2020-01-13 20:09:05 -08:00
Jon Siwek
5191e14eff
Add stdout/stderr redirection option to supervised node config
2020-01-10 19:48:31 -08:00
Jon Siwek
263a5f404a
Add cpu affinity option to supervised node config
2020-01-10 18:25:42 -08:00
Jon Siwek
00cd04b0ae
Extend Supervisor Node config with list of custom scripts
2020-01-08 14:52:46 -08:00
Jon Siwek
297317b232
Organize command-line options for Supervisor filtering/inheritance
...
Also have stem process execv() with original command-line arguments so
that they're re-parsed and inherited correctly by supervised-nodes in
the event the stem process needs to be re-created.
2020-01-08 14:05:19 -08:00
Jon Siwek
b114766205
Add Supervisor::is_supervised()
...
And use to to avoid redef'ing the log rotation postprocessor to
"archive-log" by default since it's unlikely PATH is configured to find
that script.
2020-01-07 10:27:07 -08:00
Jon Siwek
aaa702fb4d
Add option to change supervised node's working directory
2020-01-06 18:39:14 -08:00
Jon Siwek
29f386e388
Implement minimal supervised cluster configuration
...
More aspects of the cluster configuration to get fleshed out later,
but a basic cluster like one would use for a live deployment
can now be instantiated and run under supervision. The new
clusterized-pcap-processing supervisor mode is also not done yet.
2019-10-23 17:37:53 -07:00
Jon Siwek
7a6355f64f
Change supervisor event API to use strings for request IDs
2019-10-21 09:12:50 -07:00
Jon Siwek
773b39e52e
Finish implementing supervisor infrastructure
...
The process hierarchy and all supervisor control commands are now
working (e.g. status, create, destroy, restart), but nodes are
not currently spawned with the desired configuration parameters so
they don't yet operate as real cluster nodes (e.g. worker, logger,
manager, proxy).
2019-10-18 17:57:20 -07:00
Jon Siwek
7c08488dfc
Add skeleton logic for handling supevisor control messages
2019-10-16 15:13:15 -07:00
Jon Siwek
e46cf88435
Add Supervisor BIF/event API skeleton
2019-10-15 12:59:45 -07:00