Commits stall 1–21 s on Developer plan while reads stay fast

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_names is 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

  1. Is this expected on the Developer plan’s shared storage / IOPS limits?
  2. Would moving back to Basic avoid it, and is that an in-place plan change or a new cluster plus migration?
  3. Could someone at Fly look at host/volume I/O for this cluster at the times above?

Thanks!

Hello @linkbop12! Apologies for the experience here—the primary is on a host with poor performing drives, hence we’ll need to migrate it to a better host to avoid future stalls. This will involve a switchover to the standby replica and demote the current primary. After the switchover, we can then move that demoted-primary to a better, healthier host.

Could you please confirm what window in UTC you’d prefer to schedule the switchover? It should involve a few moments of downtime, and connections would have to reconnect after. No changes will be made to the connection string of course.

You can share your preferred schedule here, or communicate it with us through the MPG support portal ( which all users with an MPG cluster have access to! ): Dashboard > Support > New request.

Following up here, the Developer plan doesn’t include support out of the box, see reference, so you wouldn’t be able to contact us through the MPG support portal. Sorry about my mistake there!

You can still let us know your preferred schedule here instead.

Hi, thanks for tracking down the cause.

Please go ahead with the switchover whenever it suits your team. Any time works for me, including during the day, and a few moments of downtime is fine.

Thanks!

Okay, cluster just got switched over - things should start looking better now! Write back if you still notice issues and we’ll take another look.