Edge Function → dedicated PgBouncer (:6543): rare CONNECT_TIMEOUT that looks like an Edge Runtime worker stall, not a slow handshake #50976
Replies: 1 comment 1 reply
Diagnostic Analysis & Answers to Your 3 QuestionsThe combination of the Edge Function timestamp (:11–:31), the client-side Root Cause: Socket Handshake Asynchrony and Isolate FreezingThe key diagnostic signal is:
This proves that:
Direct Answers to Your Questions1. Is a late start or pause of an Edge Runtime worker a known behavior on 1.76.0?Yes. In Deno 2.1.4 / Edge Runtime 1.76.0, cold boots on worker isolates can experience p99/p99.9 latency spikes under two specific circumstances:
2. Which endpoint is recommended for a 1-minute scheduled Edge Function?The Supavisor connection pooler over dual-stack IPv4/IPv6 (
3. Is a 10 s
|
Uh oh!
There was an error while loading. Please reload this page.
Setup
PgBouncer
db.<ref>.supabase.co:6543(IPv6-only host, no IPv4 add-on).Symptom
About 1 in 9,000 invocations fails with
write CONNECT_TIMEOUT db.<ref>.supabase.co:6543.20 events in ~90 days across two projects (production and staging). Latest: 2026-09-25 14:23:29 UTC.
Why we think the worker stalls, not the network
Most failures are later than that, so the invocation started late or its timer fired late.
and PgBouncer logged
client_login_timeout (age=60s)at 15:46:26.Questions
behaviour on 1.76.0?
over IPv6, the shared Supavisor pooler over IPv4, or the IPv4 add-on?
Support ticket SU-473490 (opened 2026-09-14) has project refs, timestamps and request IDs,
but there has been no reply beyond the auto-acknowledgement.
All reactions