-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pageserver: notify compaction loop at threshold (#10740)
## Problem The compaction loop currently runs periodically, which can cause it to wait for up to 20 seconds before starting L0 compaction by default. Also, when we later separate the semaphores for L0 compaction and image compaction, we want to give up waiting for the image compaction semaphore if L0 compaction is needed on any timeline. Touches #10694. ## Summary of changes Notify the compaction loop when an L0 flush (on any timeline) exceeds `compaction_threshold`. Also do some opportunistic cleanups in the area.
- Loading branch information
1 parent
c368b0f
commit 8c4e941
Showing
5 changed files
with
103 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
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
8c4e941
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7425 tests run: 7000 passed, 44 failed, 381 skipped (full report)
Failures on Postgres 17
test_forward_compatibility
: release-x86-64-with-lfc, release-x86-64-without-lfc, debug-x86-64-without-lfc, release-arm64-without-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ooonn]
: release-x86-64-with-lfc, release-x86-64-without-lfc, debug-x86-64-without-lfc, release-arm64-with-lfc, release-arm64-without-lfctest_versions_mismatch[combination_ononn]
: release-x86-64-with-lfc, release-x86-64-without-lfc, debug-x86-64-without-lfc, release-arm64-with-lfc, release-arm64-without-lfctest_versions_mismatch[combination_onnnn]
: release-x86-64-with-lfc, release-x86-64-without-lfc, debug-x86-64-without-lfc, release-arm64-with-lfc, release-arm64-without-lfcFailures on Postgres 16
test_forward_compatibility
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ooonn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ononn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_onnnn]
: release-x86-64-with-lfc, release-arm64-with-lfcFailures on Postgres 15
test_forward_compatibility
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ooonn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ononn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_onnnn]
: release-x86-64-with-lfc, release-arm64-with-lfcFailures on Postgres 14
test_forward_compatibility
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ooonn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_ononn]
: release-x86-64-with-lfc, release-arm64-with-lfctest_versions_mismatch[combination_onnnn]
: release-x86-64-with-lfc, release-arm64-with-lfcFlaky tests (3)
Postgres 16
test_crafted_wal_end[vanilla-last_wal_record_crossing_segment]
: release-x86-64-with-lfctest_scrubber_physical_gc_ancestors[2]
: release-arm64-with-lfcPostgres 15
test_scrubber_physical_gc_ancestors[None]
: release-arm64-with-lfcTest coverage report is not available
8c4e941 at 2025-02-10T19:17:28.039Z :recycle: