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:
Johanna Amann 2018-05-29 14:07:26 -07:00
parent 84c1d9c808
commit 44dfcb7c6a
3 changed files with 125 additions and 2 deletions

View file

@ -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;