Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.14 KB

File metadata and controls

25 lines (17 loc) · 1.14 KB

Controller

The controller acts as the entry point to a cluster of connected workers. All registration and invocation requests are assumed to be routed through the controller.

Configuration

The controller will search along these paths for the configuration. Later values should override those in earlier paths.

  1. ./load_balancer/src/load_balancer.json (based on the launch location of the root directory on launch)
  2. ./load_balancer/src/load_balancer.dev.json (based on the launch location of the root directory on launch)
  3. A file path set using the --config flag to the executable.

Configuration via environment variables is also supported. The must be prefixed with ILUVATAR_CONTROLLER, and traversing down objects are separated by a double underscore __. So config.load_balancer.algorithm transforms to ILUVATAR_CONTROLLER__load_balancer__algorithm.

For example.

ILUVATAR_CONTROLLER__load_balancer__algorithm='RoundRobin' ./iluvatar_controller --config /my/config/path.json

See this Rust file for details on the configuration file and their descriptions.