go network_error ai_generated true

rpc error: code = Unavailable desc = no healthy upstream

ID: go/grpc-unavailable-load-balancer-no-backends

Also available as: JSON · Markdown · 中文
80%Fix Rate
88%Confidence
0Evidence
2024-05-30First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.1 active

Root Cause

The load balancer or service mesh cannot find any healthy backend instances to route the request.

generic

中文

负载均衡器或服务网格找不到任何健康的后端实例来路由请求。

Workarounds

  1. 85% success
    // Configure health checks: grpc.HealthCheck(healthpb.NewHealthClient(conn))
  2. 80% success
    // Configure destination rules with outlier detection.

Dead Ends

Common approaches that don't work:

  1. 70% fail

    Backends remain unhealthy; client restart doesn't fix server issues.

  2. 60% fail

    New replicas may also fail health checks due to same issue.