Skip to content
PostgreSQL 17: recurring multi-second WAL/storage waits on a small EU West volume
dezmunt1
OP

7 hours ago

Hello Railway Support,

Please investigate recurring multi-second storage stalls on my managed PostgreSQL service. Live PostgreSQL sampling captured WAL and data-file I/O waits coinciding with slow SQL statements, with no blocking PIDs. The stalls recur intermittently.

Service details:

  • Region: europe-west4-drams3a (EU West)
  • PostgreSQL 17
  • Volume: 5000 MB; 753.893376 MB used when checked, so the volume was not full

Directly correlated captures (all times UTC; statement text is normalized and values are omitted):

  1. 2026-11-26 around 22:21

    • INSERT INTO delivery_tasks ...: 14.869 seconds
    • IO/DataFileRead and LWLock/WALWrite waits: up to 13.352 seconds
  2. 2026-11-27 around 08:08

    • UPDATE media_models ...: 29.364 seconds
    • IO/WalSync wait: up to 27.442 seconds
  3. 2026-11-27 around 08:13

    • INSERT INTO request_tasks ...: 4.163 seconds
    • IO/WalWrite wait: up to 2.413 seconds

The sampler captured 62 waits across IO/WalSync, IO/WalWrite, IO/WalInitSync, IO/DataFileRead, and LWLock/WALWrite. No blocking PIDs were present.

The problem recurred on 2026-11-29 around 08:02-08:11 UTC. Normalized INSERT, SELECT, and UPDATE statements took between 5.698 and 40.157 seconds; several different statements completed together at 08:06:39 UTC. A checkpoint that started at 08:06:02 UTC took 37.938 seconds overall. This recurrence did not have a live wait-event capture, so it is supporting context rather than direct proof of the wait type.

These observations establish PostgreSQL WAL/data-file I/O waits during the directly captured incidents. They do not, by themselves, establish whether the underlying cause is the volume, host, storage backend, throttling, or another platform layer.

Please answer the following:

  1. Can you inspect the volume, instance/host, and storage backend for latency, errors, throttling, or incidents during the UTC windows above? Please report any relevant platform-side observation, including if none is found.
  2. Can Railway remediate the current service or assist with replacement/migration to a new volume in the same EU West region? If so, please provide the concrete action, owner, expected start/completion time, and next-update deadline.
  3. For an assisted replacement/migration to replace my self-managed plan, I need a written plan confirming:
    • RPO = 0;
    • expected downtime no more than 30 minutes;
    • how writers will be stopped and cut over;
    • what happens to the old volume and how long it will be retained;
    • an exact rollback procedure, including how writes made after cutover are preserved.
  4. If assisted replacement is unavailable, are there platform-specific concerns with my fallback plan: stop all writers, create a fresh PostgreSQL 17 service with a new volume in the same region, run a final pg_dump/pg_restore, validate the restored data, and then cut over?

Please do not initiate a migration, delete the old volume, or otherwise change the service without explicit confirmation.

Thank you.

Awaiting User Response

1 Reply

Railway
BOT

7 hours ago

Your Postgres volume currently reads as healthy, with about 759 MB used of its 5,000 MB, and it runs with the standard limits of 3,000 IOPS and 70 MB/s bandwidth. From what we can read for this service, we can't tie the stalls in your UTC windows to a specific platform cause, so we can't give you a root cause or a throttling verdict for them.

On your fallback plan: a new PostgreSQL service starts with its own new, empty volume, so the data has to be copied over yourself, for example with pg_dump and pg_restore, and the existing service and its volume are separate from it. Before relying on the cutover, run it once in a test project and check the restore duration, the variables your app needs to point at the new database, and that your application reconnects cleanly.


Status changed to Awaiting User Response Railway • about 7 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...