Module init

Source
Expand description

Initialization func initialize the Sentinel’s runtime environment, including:

  1. override global config, from manually config or yaml file or env variable
  2. initialize global logger
  3. initiate core component async task, including: metric log, system statistic…

Functions§

init_default
init_default initializes Sentinel using the configuration from system environment and the default value.
init_with_config
init_with_config initializes Sentinel using given config.
init_with_config_file
Init loads Sentinel general configuration from the given YAML file and initializes Sentinel.