feat(monitoring): add dry-run mode to simulate qdisc rate changes

Enable a monitoring-only mode that logs intended bandwidth adjustments without applying them to the system via netlink.
This commit is contained in:
Nils Andreas Svee committed 2026-04-13 12:11:05 +07:00
1 parent 6d44556d63
commit f0fb3c9640
4 files changed
+29 -5

No files matched your search

+8
View File
@@ -84,6 +84,9 @@ pub struct Config {
pub speed_hist_size: u32,
pub tick_interval: f64,
pub upload_delay_ms: f64,
// Monitoring / dry-run
pub dry_run: bool,
}
impl Config {
@@ -186,6 +189,11 @@ impl Config {
"sqm-autorate.@advanced_settings[0].upload_delay_ms",
Some(15.0),
)?,
dry_run: Self::get::<bool>(
"SQMA_DRY_RUN",
"sqm-autorate.@advanced_settings[0].dry_run",
Some(false),
)?,
};
let mut config = config;