Repository navigation
scheduler: add pool-aware deterministic worker subsets - #25990
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
LeftHandCold
left a comment
There was a problem hiding this comment.
Re-reviewed the updated head. The previous strict-isolation blocker is closed: disttae and memoryengine now fail closed with an empty label selector under strict policy, while legacy-compatible requests retain all-compatible behavior. The direct Session -> frontend -> compile path reaches no-match and unsatisfied placement, so no cross-pool remote worker can be launched. I also rechecked resolver coverage/wrappers, placement termination, default compatibility, retry/reuse, and lifecycle/unhappy paths; no additional actionable blocker found. Focused regressions under -race, full disttae/memoryengine/frontend/schedule/compile tests, and affected-package build/vet pass locally.
aptend
left a comment
There was a problem hiding this comment.
Re-reviewed the updated head at 2d759fa. The previous strict-pool isolation blocker is closed: both disttae and memoryengine fail closed when strict policy has no CN label selector, while legacy-compatible behavior remains unchanged. The no-match result propagates through placement to an unsatisfied compile result before scope materialization or remote launch. Focused regressions passed under race for three iterations; full frontend, disttae, and memoryengine tests and vet also passed locally. No remaining blocking findings.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #25451
What this PR does / why we need it:
This is the Phase 8 scheduler capability PR. It makes pool intent and deterministic worker-subset selection first-class across frontend, compile, engine resolution, scan/stage placement, tracing, and EXPLAIN.
Key points:
max-workers(N)selection with stable membership and final execution ordering; the ingress CN may remain coordinator without being a query worker.CPUTotal, participant compatibility filtering, and strict no-cross-pool behavior.QueryClient != nil -> CurrentCNRequiredproxy and prevents remote scope failures from silently moving execution back to the coordinator.Validation:
pkg/sql/schedule,pkg/vm/engine/disttae,pkg/vm/engine/memoryengine,pkg/sql/compile, andpkg/frontend.go build,go vet,git diff --check, and scheduling benchmarks.make dev-buildandmake dev-upwith a fresh five-service cluster.max-workers(1): CN1 remained ingress/coordinator, CN2 was the only query/scan/stage worker, andsum(a)returned12500002500000.