From bce8d4b3f5a94791876ed4caae366d94fbc08b49 Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Wed, 14 Feb 2024 19:50:04 +0300 Subject: [PATCH] Stop postgres in immediate mode in VM image. PR #6712 might add a delay in graceful shutdown without change to compute -> sk protocol to force sync of control file on safekeeper to persist commit_lsn, so use 'immediate' mode instead; 'fast' one isn't useful for neon anyway. --- vm-image-spec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-image-spec.yaml b/vm-image-spec.yaml index 16ceb06617..92a893b3a0 100644 --- a/vm-image-spec.yaml +++ b/vm-image-spec.yaml @@ -18,7 +18,7 @@ commands: sysvInitAction: respawn shell: '/bin/sql_exporter -config.file=/etc/sql_exporter.yml' shutdownHook: | - su -p postgres --session-command '/usr/local/bin/pg_ctl stop -D /var/db/postgres/compute/pgdata -m fast --wait -t 10' + su -p postgres --session-command '/usr/local/bin/pg_ctl stop -D /var/db/postgres/compute/pgdata -m immediate --wait -t 10' files: - filename: pgbouncer.ini content: |