-
Notifications
You must be signed in to change notification settings - Fork 4.1k
jobs: Clear out claim columns when pausing jobs #82698
Copy link
Copy link
Closed
Labels
A-jobsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-jobssync-me-8
Description
If a job is paused, it retains claim_session_id and claim_instance_id columns.
Thus, if it is subsequently resumed, the same node will reclaim the job...
We should clear out both columns when pausing the job.
Currently, this is the only mechanism we have to try to "rebalance" jobs resumer
assignment.
Also consider lowering the number of jobs registry can claim at a time.
Bonus: consider moving this limit from an env var to a setting.
Jira issue: CRDB-16553
Epic CRDB-15034
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-jobsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-jobssync-me-8