🐛 Brings health check back to live

This commit is contained in:
2025-10-07 00:34:00 +08:00
parent 282a1dbddc
commit e634968e00
2 changed files with 23 additions and 12 deletions

View File

@@ -100,6 +100,22 @@ var routes = specialRoutes.Concat(apiRoutes).Concat(swaggerRoutes).ToArray();
var clusters = serviceNames.Select(serviceName => new ClusterConfig
{
ClusterId = serviceName,
HealthCheck = new()
{
Active = new()
{
Enabled = true,
Interval = TimeSpan.FromSeconds(10),
Timeout = TimeSpan.FromSeconds(5),
Policy = "ActiveHealthy",
Path = "/health"
},
Passive = new()
{
Enabled = true,
Policy = "PassiveHealthy"
}
},
Destinations = new Dictionary<string, DestinationConfig>
{
{ "destination1", new DestinationConfig { Address = $"http://{serviceName}" } }