close
Skip to content

Added ability to wake Compactors that might be in a long wait - #6510

Open
dlmarion wants to merge 2 commits into
apache:2.1from
dlmarion:4664-wake-sleeping-compactors
Open

Added ability to wake Compactors that might be in a long wait#6510
dlmarion wants to merge 2 commits into
apache:2.1from
dlmarion:4664-wake-sleeping-compactors

Conversation

@dlmarion

Copy link
Copy Markdown
Contributor

When there is no compaction work Compactors will wait progressively longer (between COMPACTOR_MIN_JOB_WAIT_TIME and COMPACTOR_MAX_JOB_WAIT_TIME) before checking in with the Coordinator for work. The wait time is used to reduce the number of RPC calls to the Coordinator. However, with large max wait times Compactors may sit idle when there is work to do. This change allows the user to configure the Coordinator to wake waiting Compactors when there is work in the queue.

Closes #4664

When there is no compaction work Compactors will wait progressively
longer (between COMPACTOR_MIN_JOB_WAIT_TIME and COMPACTOR_MAX_JOB_WAIT_TIME)
before checking in with the Coordinator for work. The wait time is
used to reduce the number of RPC calls to the Coordinator. However,
with large max wait times Compactors may sit idle when there is work
to do. This change allows the user to configure the Coordinator to
wake waiting Compactors when there is work in the queue.

Closes apache#4664
@dlmarion dlmarion added this to the 2.1.7 milestone Aug 21, 2026
@dlmarion dlmarion self-assigned this Aug 21, 2026
@dlmarion dlmarion linked an issue Aug 21, 2026 that may be closed by this pull request
@dlmarion
dlmarion requested review from ctubbsii, ddanielr and keith-turner and removed request for keith-turner August 21, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decrease latency between time compaction job is added and run

1 participant