{
  "id": "aws/rds-proxy-idle-connection-timeout",
  "signature": "RDS Proxy connection terminated: idle in transaction timeout (60 seconds)",
  "signature_zh": "RDS 代理连接已终止：事务空闲超时（60 秒）",
  "regex": "idle in transaction timeout \\(60 seconds\\)",
  "domain": "aws",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "RDS Proxy enforces a 60-second idle transaction timeout by default, terminating connections that hold open transactions without activity.",
  "root_cause_type": "generic",
  "root_cause_zh": "RDS 代理默认强制执行 60 秒事务空闲超时，终止持有打开事务但无活动的连接。",
  "versions": [
    {
      "version": "RDS Proxy 1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "aurora-mysql-8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "postgresql-15.4",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing the idle timeout in RDS Proxy settings is not supported; the 60-second limit is hardcoded.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disabling connection pooling entirely removes the proxy benefit and may cause connection storms.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set `idle_in_transaction_session_timeout` to a higher value in the database (e.g., `SET idle_in_transaction_session_timeout = '120000';`) to allow longer idle transactions.",
      "success_rate": 0.85,
      "how": "Set `idle_in_transaction_session_timeout` to a higher value in the database (e.g., `SET idle_in_transaction_session_timeout = '120000';`) to allow longer idle transactions.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Implement application-level keepalive: send a simple query (e.g., `SELECT 1`) every 30 seconds within long transactions to prevent idle detection.",
      "success_rate": 0.9,
      "how": "Implement application-level keepalive: send a simple query (e.g., `SELECT 1`) every 30 seconds within long transactions to prevent idle detection.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在数据库中设置更高的 `idle_in_transaction_session_timeout` 值（例如 `SET idle_in_transaction_session_timeout = '120000';`）以允许更长的空闲事务。",
    "实现应用层保活：在长事务中每 30 秒发送一个简单查询（例如 `SELECT 1`）以防止空闲检测。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy.html#rds-proxy-idle-timeout",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-06-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}