go network_error ai_generated true

rpc 错误:代码 = Unavailable 描述 = 没有健康的上游

rpc error: code = Unavailable desc = no healthy upstream

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

其他格式: JSON · Markdown 中文 · English
80%修复率
88%置信度
0证据数
2024-05-30首次发现

版本兼容性

版本状态引入弃用备注
1.1 active

根因分析

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

English

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

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. 70% 失败

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

  2. 60% 失败

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