-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jobs: Execute scheduled jobs on a single node in the cluster.
Execute scheduled jobs daemon on a single node -- namely, the lease holder for meta1 range lease holder. Prior to this change, scheduling daemon was running on each node, polling scheduled jobs table periodically with a `FOR UPDATE` clause. Unfortunately, job planning phase (namely, the backup planning phase) could take significant amount of time. In such situation, the entirety of the scheduled jobs table would be locked, resulting in inability to introspect the state of schedules (or jobs) via `SHOW SCHEDULES` or similar statements. Furthermore, dropping `FOR UPDATE` clause by itself is not ideal because that would lead to expensive backup planning being executed on almost every node, with all but 1 node making progress. The single node mode is turned on by default, but can be reverted back to its prior state via a `jobs.scheduler.single_node_scheduler.enabled` setting. Release Notes: scheduled jobs scheduler now runs on a single node by default in order to reduce contention on scheduled jobs table.
- Loading branch information
Yevgeniy Miretskiy
committed
Feb 18, 2022
1 parent
4996177
commit 0e2461e
Showing
6 changed files
with
126 additions
and
7 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
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