⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

parse_config

Function parse_config 

Source
pub fn parse_config(input: &str) -> Result<LbConfig, ConfigError>
Expand description

Parse a load balancer configuration from key=value format.

Recognized keys:

  • health_check_interval=N
  • rate_limit_rps=N
  • rate_limit_burst=N
  • vip=addr:port:algorithm (e.g., vip=10.96.0.1:80:roundrobin)
  • backend=vip_addr:vip_port:backend_addr:backend_port
  • route=path_prefix:host:backend_group