Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server,jobs: remove the logic to run the scheduler on 1 node #93639

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

knz
Copy link
Contributor

@knz knz commented Dec 14, 2022

Fixes #90383.

  • The mechanism to limit the scheduler execution to 1 node was only effective on KV nodes, with direct access to the leaseholder information for the liveness table.

    However, we want uniform behavior in a multitenant environment, so a mechanism specific to KV nodes is not acceptable any more.

  • Since this was first implemented, we've found the job scheduler not to be disruptive any more, so it's now safe to run it on every node.

Release note: None

@knz knz added the A-multitenancy Related to multi-tenancy label Dec 14, 2022
@knz knz requested a review from stevendanna December 14, 2022 20:15
@knz knz requested review from a team as code owners December 14, 2022 20:15
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz force-pushed the 20221214-job-sched branch 2 times, most recently from 3bb61f2 to 1800911 Compare December 18, 2022 08:50
@knz
Copy link
Contributor Author

knz commented Dec 18, 2022

TFYR!

bors r=miretskiy

@craig
Copy link
Contributor

craig bot commented Dec 18, 2022

Build failed:

- The mechanism to limit the scheduler execution to 1 node
  was only effective on KV nodes, with direct access to
  the leaseholder information for the liveness table.

  However, we want uniform behavior in a multitenant environment, so a
  mechanism specific to KV nodes is not acceptable any more.

- Since this was first implemented, we've found the job scheduler
  not to be disruptive any more, so it's now safe to run it on
  every node.

Release note: None
@knz knz force-pushed the 20221214-job-sched branch from 1800911 to 388dee7 Compare December 19, 2022 08:24
@knz
Copy link
Contributor Author

knz commented Dec 19, 2022

bors r=miretskiy

@craig
Copy link
Contributor

craig bot commented Dec 19, 2022

Build succeeded:

@craig craig bot merged commit b6667d9 into cockroachdb:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multitenancy Related to multi-tenancy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql: missing predicates to start the job scheduler in secondary tenants
3 participants