| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix collector heartbeat suspending during long benchmark jobs The heartbeat loop performed two unbounded awaits per tick (pool connection acquisition and the UPDATE query). A pooled Postgres connection can go half-open while sitting idle for hours during a long benchmark; is_valid only checked is_closed(), which does no network round-trip, so the heartbeat task could pick up a dead connection and hang forever, permanently freezing the loop. Increasing runtime worker threads never helped because the job future runs on the block_on thread and does not compete with the heartbeat task for workers. - Bound each heartbeat round with a 30s timeout so a stuck round logs a warning and the loop keeps ticking; use MissedTickBehavior::Delay to avoid tick bursts after a stall. - Probe pooled Postgres connections with SELECT 1 (5s timeout) in is_valid, matching the SQLite behaviour, so stale connections are discarded on reuse instead of being handed out. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> | 1 个月前 | |
Fix collector heartbeat suspending during long benchmark jobs The heartbeat loop performed two unbounded awaits per tick (pool connection acquisition and the UPDATE query). A pooled Postgres connection can go half-open while sitting idle for hours during a long benchmark; is_valid only checked is_closed(), which does no network round-trip, so the heartbeat task could pick up a dead connection and hang forever, permanently freezing the loop. Increasing runtime worker threads never helped because the job future runs on the block_on thread and does not compete with the heartbeat task for workers. - Bound each heartbeat round with a 30s timeout so a stuck round logs a warning and the loop keeps ticking; use MissedTickBehavior::Delay to avoid tick bursts after a stall. - Probe pooled Postgres connections with SELECT 1 (5s timeout) in is_valid, matching the SQLite behaviour, so stale connections are discarded on reuse instead of being handed out. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> | 1 个月前 | |
Add doc Co-authored-by: ywxtcwh<ywxtcwh@gmail.com> | 1 个月前 | |
Add doc Co-authored-by: ywxtcwh<ywxtcwh@gmail.com> | 1 个月前 | |
Add doc Co-authored-by: ywxtcwh<ywxtcwh@gmail.com> | 1 个月前 | |
Add doc Co-authored-by: ywxtcwh<ywxtcwh@gmail.com> | 1 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 |