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
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.

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.
@jgpruitt jgpruitt force-pushed the john/maintenance-pool branch from fea871e to cb6b4e4 Compare September 27, 2022 12:14
@jgpruitt jgpruitt merged commit b60be95 into master Sep 27, 2022
@jgpruitt jgpruitt deleted the john/maintenance-pool branch September 27, 2022 12:41
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.

3 participants