mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Start clusterizing configuration framework.
This is not finished and currently does not work due Broker not liking to serialize into any types.
This commit is contained in:
parent
84c1d9c808
commit
44dfcb7c6a
3 changed files with 125 additions and 2 deletions
|
@ -54,12 +54,14 @@ event InputConfig::new_value(name: string, source: string, id: string, value: an
|
|||
{
|
||||
if ( sub_bytes(name, 1, 15) != "config-oneshot-" && source !in config_files )
|
||||
return;
|
||||
|
||||
Option::set(id, value, source);
|
||||
|
||||
Config::set_value(id, value, source);
|
||||
}
|
||||
|
||||
function read_config(filename: string)
|
||||
{
|
||||
# Only read the configuration on the manager. The other nodes are being fed from
|
||||
# the manager.
|
||||
if ( Cluster::is_enabled() && Cluster::local_node_type() != Cluster::MANAGER )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue