Добавить X-Instance-Id, задержку drain при SIGTERM и отдельный запуск миграций
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user