Skip to main content

all_dyncfgs

Function all_dyncfgs 

Source
pub fn all_dyncfgs(configs: ConfigSet) -> ConfigSet
Expand description

Adds the full set of all persist Configs.

Persist configs are ParameterScope::Environment by default, because a persist client runs in every clusterd process and the per-replica dyncfg push reaches its ConfigSet (the compute worker applies the pushed updates to persist_clients.cfg()). environmentd’s own persist clients read the same configs and see the environment-wide value, which is what “replica- local” means for a config that both processes run. The exceptions are the configs read only from environmentd’s catalog and expression cache, which are ParameterScope::Environment.

TODO(cfg): Consider replacing this with a static global registry powered by something like the ctor or inventory crate. This would involve managing the footgun of a Config being linked into one binary but not the other.