fix(agent): h2 keep-alive pings + metrics retry backoff #22
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/agent-metrics-conn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
master's postgres-metrics POST intermittently hung until the agent's 15s client timeout, so it retried every heartbeat cycle (log spam + extra psql load).
ReadIdleTimeout/PingTimeoutviahttp2.ConfigureTransports): a silently-dropped pooled HTTP/2 connection to the edge is now detected and replaced instead of hanging requests until the client timeout.Honest caveat: a deeper intermittent Go-HTTP hang on master is not fully resolved — curl -4 with the identical payload is 20/20 fast, yet the agent still occasionally times out (ruled out: connection pooling, h2 reuse, IP family, payload size, proxy env, network). It needs runtime-level instrumentation (GODEBUG/tcpdump) to root-cause. Metrics still flow (server completes the insert;
GET /api/fg/databasesshows live data for all 33 DBs); this PR halves the churn and improves connection robustness.🤖 Generated with Claude Code
67453402dead18587645fix(agent): fresh connection + backoff for postgres metrics POSTto fix(agent): h2 keep-alive pings + metrics retry backoff