mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
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.
This commit is contained in:
parent
25a8ba99fa
commit
29f386e388
12 changed files with 390 additions and 91 deletions
|
@ -4,14 +4,32 @@
|
|||
module Supervisor;
|
||||
|
||||
export {
|
||||
type ClusterRole: enum {
|
||||
NONE,
|
||||
LOGGER,
|
||||
MANAGER,
|
||||
PROXY,
|
||||
WORKER,
|
||||
};
|
||||
|
||||
type ClusterEndpoint: record {
|
||||
role: ClusterRole;
|
||||
host: addr;
|
||||
p: port;
|
||||
interface: string &optional;
|
||||
};
|
||||
|
||||
type Node: record {
|
||||
# TODO: add proper config fields
|
||||
name: string;
|
||||
interface: string &optional;
|
||||
cluster: table[string] of ClusterEndpoint &default=table();
|
||||
|
||||
# TODO: separate node config fields from status fields ?
|
||||
# TODO: add more status fields ?
|
||||
pid: count &optional;
|
||||
};
|
||||
|
||||
type Status: record {
|
||||
# TODO: add more status fields ?
|
||||
nodes: table[string] of Node;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue