Skip to content

Reload

Monitors changes to configuration and symbol files to notify/restart affected pipeline units or the entire pipeline.

This mechanisms works in tandem with GitHub-Sync to enables symbol, lookup and configuration files to refresh at run time in order to reflect dynamic changes at the environment level.

For a real-world example see the policy function which updates the threshold settings for an output regulator based on environment-wide criteria.

Configuration

To configure the Config reloader unit, Edit these settings.

Below is the default configuration from: reload/config.yaml.

Edit Online

Edit config.yaml Locally

# 🔟❎ 'run' reload pipeline configuration

# Monitors changes to configuration and symbol files to notify/restart affected pipeline units or the entire pipeline.
# To learn more see https://doc.log10x.com/run/reload/

# Set the 10x pipeline to 'run'
tenx: run

# ============================== Reload Options ===============================

reload:

  # 'pollInterval' defines the interval for checking changes to files
  pollInterval: 10s

  # 'resourceFiles' defines whether to restart pipeline when config files are changed on disk.
  restartPipeline: true

Options

Specify the options below to configure the Config reloader:

Name Description
reloadPollInterval Interval for checking changes to config/resource files
reloadRestartPipeline Restart pipeline when config files are changed on disk

reloadPollInterval

Interval for checking changes to config/resource files.

Type Default
String ""

Defines the interval (e.g., '10s') for checking modifications to files on disk. If set to null or empty value, changes to config and resource files are not polled.

reloadRestartPipeline

Restart pipeline when config files are changed on disk.

Type Default
Boolean true

Controls whether to watch for modifications to configuration files. Modifications will initiate a pipeline graceful restart. This setting can operate in conjunction with GitHub config sync to allow pipelines to reload/restart from a centralized configuration repository at run time.


This unit is defined in reload/unit.yaml.