Add manual routing policy for router (#15586)

This commit is contained in:
fzyzcjy
2025-12-25 11:27:36 +08:00
committed by GitHub
parent 1ba897f330
commit 45adad37d0
35 changed files with 1128 additions and 65 deletions
+4
View File
@@ -336,6 +336,9 @@ pub enum PolicyConfig {
/// Interval between bucket boundary adjustment cycles (seconds)
bucket_adjust_interval_secs: usize,
},
#[serde(rename = "manual")]
Manual,
}
impl PolicyConfig {
@@ -346,6 +349,7 @@ impl PolicyConfig {
PolicyConfig::CacheAware { .. } => "cache_aware",
PolicyConfig::PowerOfTwo { .. } => "power_of_two",
PolicyConfig::Bucket { .. } => "bucket",
PolicyConfig::Manual => "manual",
}
}
}
@@ -226,6 +226,7 @@ impl ConfigValidator {
});
}
}
PolicyConfig::Manual => {}
}
Ok(())
}