Hi all,
Since moving my Managed Postgres cluster from Basic to the Developer plan on 2026-11-27, I’m seeing write stalls several times an hour at their worst. Commits hang for 1–21 seconds while reads on the same connection pool come back in a few ms. The app is nearly idle (about 2 transactions/second), so load doesn’t explain it. Basic had the occasional slow commit, but nothing like this.
Setup
- Cluster: region ord, Developer plan, PostgreSQL 16.16, primary + hot standby
- App: one machine in ord, Elixir/Phoenix (Ecto/Postgrex, Oban)
Probe
A loop inside the app runs, every 2 s, a plain read (select 1) and a tiny commit (select txid_current() inside a transaction; it touches no table and forces a WAL flush). Stalls it caught on 2026-11-27, UTC:
| time | read | commit |
|---|---|---|
| 22:51:28 | 6 ms | 7,338 ms |
| 23:37:09 | 5 ms | 21,425 ms |
| 23:40:31 | 4 ms | 1,335 ms |
| 23:41:35 | 6 ms | 13,738 ms |
| 23:47:28 | 10 ms | 1,389 ms |
| 23:48:00 | 5 ms | 6,233 ms |
| 23:49:07 | 5 ms | 1,196 ms |
| 23:51:15 | 4 ms | 1,198 ms |
Normal rounds are 3–8 ms reads and 7–13 ms commits. In one quiet hour, 1,923 rounds, the slowest commit was 146 ms. Earlier stalls at about 20:49–20:51 and 21:10:15 timed out app connections after 15 s waiting on the COMMIT reply (Postgrex.Protocol.recv_transaction). That crashes Oban’s Peer/Stager processes because leader? checks time out.
The app’s Ecto histograms (COMMIT only, same app, same load) compare the two plans directly:
| commits > 250 ms | > 2.5 s | > 10 s | |
|---|---|---|---|
| Basic, 72 h before the switch | 54 | 7 | 0 |
| Developer, first 9 h after | 89 | 25 | 5 |
That is roughly 25× the rate of multi-second commits, and the first commits ever to pass 10 s.
The cluster’s own monitoring is hit too
During the 22:51 stall, the cluster log shows Fly’s exporter being cancelled:
_pgmonitor@postgres pg_exporter ERROR: canceling statement due to user request
STATEMENT: SELECT datname, pg_database_size(oid) AS bytes FROM pg_database
Similar _pgmonitor cancellations (even SELECT pg_is_in_recovery()) show up every few minutes outside the stalls as well.
Ruled out
- App machine idle: load ~0, no swap.
synchronous_standby_namesis empty, so commits don’t wait on the replica.pgaudit.log = none,log_statement = none,log_connections = off.- Reads stay fast during a stall, so it doesn’t look like network or CPU.
- Checkpoints around the stalls are small (sync ≤ 0.77 s).
It looks like the volume’s write/fsync path freezes for seconds at a time: commits and file-size queries stall while reads served from memory don’t.
Questions
- Is this expected on the Developer plan’s shared storage / IOPS limits?
- Would moving back to Basic avoid it, and is that an in-place plan change or a new cluster plus migration?
- Could someone at Fly look at host/volume I/O for this cluster at the times above?
Thanks!