fix: terminate pgbouncer on compute suspend (#12153)

## Problem

PgBouncer does not terminate connections on a suspend:
https://github.com/neondatabase/cloud/issues/16282

## Summary of changes

1. Adds a pid file to store the pid of PgBouncer
2. Terminates connections on a compute suspend

---------

Co-authored-by: Alexey Kondratov <kondratov.aleksey@gmail.com>
This commit is contained in:
Suhas Thalanki
2025-06-17 15:56:05 -07:00
committed by GitHub
parent 7d4f662fbf
commit 83069f6ca1
10 changed files with 90 additions and 7 deletions

View File

@@ -95,3 +95,4 @@ echo "Start compute node"
-b /usr/local/bin/postgres \
--compute-id "compute-${RANDOM}" \
--config "${CONFIG_FILE}"
--dev