This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throttle vacuum workers based on chunk age
Throttle vacuum workers based on chunk age. Figure out how many workers to used based on the oldest transaction id age of the chunks in our batch. The age should be between vacuumFreezeMinAge and autovacuumFreezeMaxAge. The closer the maxChunkAge is to the autovacuumFreezeMaxAge, the more workers we assign. If maxChunkAge is == vacuumFreezeMinAge, then we just use 1 worker. If the autovacuum engine beats us to a chunk, skip that chunk.
- Loading branch information
Showing
5 changed files
with
389 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.