Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Add a database connection pool for maintenance jobs #1657

Merged
merged 1 commit into from Sep 27, 2022

Conversation

jgpruitt
Copy link
Contributor

@jgpruitt jgpruitt commented Sep 19, 2022

Description

Adding a dedicated pool of database connections for use by maintenance jobs such as the telemetry and vacuum engines.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

@jgpruitt jgpruitt self-assigned this Sep 19, 2022
@jgpruitt jgpruitt force-pushed the john/maintenance-pool branch 8 times, most recently from f228c92 to 20f8250 Compare September 23, 2022 02:42
@jgpruitt jgpruitt marked this pull request as ready for review September 23, 2022 03:01
@jgpruitt jgpruitt requested a review from a team as a code owner September 23, 2022 03:01
docs/configuration.md Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@antekresic antekresic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Couple of minor nits which are no big deal.

pkg/pgclient/config.go Outdated Show resolved Hide resolved
pkg/pgclient/config.go Outdated Show resolved Hide resolved
Creates a separate pool of database connections for the telemetry
and vacuum engines. We don't want maintenance jobs stealing from
the other pools, especially the writer pool.

The maintenance pool defaults to 5 connections.

The logic for calculating database pool sizes was revamped now that
there are 3 pools. Tests were added.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants