{
  "id": "api/grpc-deadline-exceeded-server-busy",
  "signature": "gRPC error: DEADLINE_EXCEEDED — server too busy to respond within deadline",
  "signature_zh": "gRPC 错误：DEADLINE_EXCEEDED — 服务器过忙，无法在截止时间内响应",
  "regex": "gRPC\\s*(?:error)?[\\s\\S]*DEADLINE_EXCEEDED[\\s\\S]*server\\s*(?:too\\s*busy|timed?\\s*out)",
  "domain": "api",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The gRPC server failed to process the request within the client-specified deadline due to high load, resource contention, or a slow downstream dependency.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC 服务器由于高负载、资源争用或下游依赖缓慢，未能在客户端指定的截止时间内处理请求。",
  "versions": [
    {
      "version": "gRPC 1.60+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC-Go 1.60+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC-Python 1.60+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the server is overloaded, a longer deadline just delays the timeout; the request may still fail or degrade other requests.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server is still busy; immediate retries worsen load and likely fail again.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is a server-side timeout, not a connection failure; network is likely fine.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement client-side retries with exponential backoff and jitter. Example gRPC-Go: `grpc.WithDefaultCallOptions(grpc.MaxRetryAttempts(3), grpc.WithBackoff(grpc.DefaultBackoffConfig))`.",
      "success_rate": 0.85,
      "how": "Implement client-side retries with exponential backoff and jitter. Example gRPC-Go: `grpc.WithDefaultCallOptions(grpc.MaxRetryAttempts(3), grpc.WithBackoff(grpc.DefaultBackoffConfig))`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Scale up the gRPC server by adding more instances or increasing resources (CPU/memory). Monitor server metrics (e.g., `grpc_server_requests_in_flight`).",
      "success_rate": 0.9,
      "how": "Scale up the gRPC server by adding more instances or increasing resources (CPU/memory). Monitor server metrics (e.g., `grpc_server_requests_in_flight`).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Reduce the request complexity or implement server-side rate limiting to prevent overload. Example: use `grpc.MaxConcurrentStreams` in server config.",
      "success_rate": 0.8,
      "how": "Reduce the request complexity or implement server-side rate limiting to prevent overload. Example: use `grpc.MaxConcurrentStreams` in server config.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "实现客户端重试，使用指数退避和抖动。gRPC-Go 示例：`grpc.WithDefaultCallOptions(grpc.MaxRetryAttempts(3), grpc.WithBackoff(grpc.DefaultBackoffConfig))`。",
    "通过添加更多实例或增加资源（CPU/内存）来扩展 gRPC 服务器。监控服务器指标（例如 `grpc_server_requests_in_flight`）。",
    "降低请求复杂度或实现服务器端速率限制以防止过载。示例：在服务器配置中使用 `grpc.MaxConcurrentStreams`。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/error/",
  "official_doc_section": null,
  "error_code": "DEADLINE_EXCEEDED",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.85,
  "resolvable": "partial",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}