Skip to content

Use the backup database connection while restoring timeouts

What does this MR do and why?

Use the backup database connection while restoring timeouts. We can override the database settings for the backup and restore tasks to bypass the PgBouncer by setting environment variables that are prefixed with GITLAB_BACKUP_, but the ensure block tries to restore the timeouts using a regular connection without the overridden database settings.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related issues

Related to #422163 (closed)

Merge request reports