mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -287,7 +287,13 @@ function is_enabled(): bool
|
|||
|
||||
function local_node_type(): NodeType
|
||||
{
|
||||
return is_enabled() ? nodes[node]$node_type : NONE;
|
||||
if ( ! is_enabled() )
|
||||
return NONE;
|
||||
|
||||
if ( node !in nodes )
|
||||
return NONE;
|
||||
|
||||
return nodes[node]$node_type;
|
||||
}
|
||||
|
||||
function node_topic(name: string): string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue