Fix dp-aware incompatible with service-discovery (#14629)

This commit is contained in:
fzyzcjy
2025-12-08 22:39:27 +08:00
committed by GitHub
parent 80cfca50bc
commit cb4cdb43a4
2 changed files with 1 additions and 7 deletions

View File

@@ -574,12 +574,6 @@ impl ConfigValidator {
}
}
if has_service_discovery && config.dp_aware {
return Err(ConfigError::IncompatibleConfig {
reason: "DP-aware routing is not compatible with service discovery".to_string(),
});
}
Ok(())
}

View File

@@ -393,7 +393,7 @@ async fn handle_pod_event(
health_failure_threshold: app_context.router_config.health_check.failure_threshold,
max_connection_attempts: app_context.router_config.health_check.success_threshold
* 20,
dp_aware: false,
dp_aware: app_context.router_config.dp_aware,
};
let job = Job::AddWorker {