{
  "id": "grpc/grpc-deadline-exceeded-server-busy",
  "signature": "DEADLINE_EXCEEDED: grpc: deadline exceeded after 5000ms while waiting for server to respond",
  "signature_zh": "DEADLINE_EXCEEDED: grpc: 等待服务器响应 5000ms 后超时",
  "regex": "DEADLINE_EXCEEDED: grpc: deadline exceeded after \\d+ms while waiting for server to respond",
  "domain": "grpc",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The server took longer than the client's deadline to respond, often due to server overload or slow processing.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器响应时间超过客户端截止时间，通常是由于服务器过载或处理缓慢。",
  "versions": [
    {
      "version": "gRPC v1.44.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.51.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.59.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This masks the problem but doesn't fix server performance; long deadlines can cause resource leaks.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The underlying performance issue (e.g., slow database queries) will reappear after restart.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Repeated retries can overwhelm the server further, worsening the problem.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Profile the server to identify slow operations (e.g., database queries, external API calls). Use tools like pprof or tracing. Example in Go: go tool pprof http://localhost:6060/debug/pprof/profile",
      "success_rate": 0.85,
      "how": "Profile the server to identify slow operations (e.g., database queries, external API calls). Use tools like pprof or tracing. Example in Go: go tool pprof http://localhost:6060/debug/pprof/profile",
      "condition": "",
      "sources": []
    },
    {
      "action": "Implement server-side rate limiting or request queuing to handle load spikes. Use a circuit breaker pattern to reject requests when the server is overloaded.",
      "success_rate": 0.75,
      "how": "Implement server-side rate limiting or request queuing to handle load spikes. Use a circuit breaker pattern to reject requests when the server is overloaded.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the client deadline to a reasonable value (e.g., 10 seconds) and add retry with exponential backoff. Example in Python with grpc.aio: await asyncio.wait_for(stub.MyRpc(request), timeout=10)",
      "success_rate": 0.8,
      "how": "Increase the client deadline to a reasonable value (e.g., 10 seconds) and add retry with exponential backoff. Example in Python with grpc.aio: await asyncio.wait_for(stub.MyRpc(request), timeout=10)",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Profile the server to identify slow operations (e.g., database queries, external API calls). Use tools like pprof or tracing. Example in Go: go tool pprof http://localhost:6060/debug/pprof/profile",
    "Implement server-side rate limiting or request queuing to handle load spikes. Use a circuit breaker pattern to reject requests when the server is overloaded.",
    "Increase the client deadline to a reasonable value (e.g., 10 seconds) and add retry with exponential backoff. Example in Python with grpc.aio: await asyncio.wait_for(stub.MyRpc(request), timeout=10)"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/deadlines/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2024-03-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}