Добавить X-Instance-Id, задержку drain при SIGTERM и отдельный запуск миграций

This commit is contained in:
2026-11-02 16:58:11 +03:00
parent 5b9f377783
commit 7fa8881eb3
21 changed files with 389 additions and 64 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func StartPostgres(ctx context.Context) (*DB, error) {
db.Close()
return nil, fmt.Errorf("postgres address: %w", err)
}
db.Pool, err = postgres.NewPool(ctx, db.DSN)
db.Pool, err = postgres.NewPool(ctx, db.DSN, 10)
if err != nil {
db.Close()
return nil, err