Create load-balanced route with health checks
Load balancer configuration
Load-balanced route
const route = createLoadBalancerRoute({ id: "api-lb", host: "api.localhost", upstreams: ["backend-1:8080", "backend-2:8080", "backend-3:8080"], policy: "round_robin", healthCheck: { path: "/health", interval: "10s", timeout: "2s", },}); Copy
const route = createLoadBalancerRoute({ id: "api-lb", host: "api.localhost", upstreams: ["backend-1:8080", "backend-2:8080", "backend-3:8080"], policy: "round_robin", healthCheck: { path: "/health", interval: "10s", timeout: "2s", },});
Create load-balanced route with health checks