feat: Add control plane telemetry - scheduler eligible workers histogram - #682
Merged
Jeff Luo (JeffLuoo) merged 6 commits intoAug 7, 2026
Conversation
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
from
August 4, 2026 15:52
5b29a8f to
1ff8de8
Compare
Angela (Angelawork)
marked this pull request as draft
August 4, 2026 17:51
Collaborator
|
Please rebase and fix e2e tests |
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
2 times, most recently
from
August 4, 2026 18:23
2cc4a44 to
59434d7
Compare
Angela (Angelawork)
marked this pull request as ready for review
August 4, 2026 18:23
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
from
August 4, 2026 18:27
ad9eac4 to
74dce74
Compare
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
from
August 4, 2026 18:29
74dce74 to
8f82992
Compare
Jeff Luo (JeffLuoo)
requested changes
Aug 4, 2026
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
2 times, most recently
from
August 5, 2026 21:21
abf9345 to
d3eb608
Compare
Jeff Luo (JeffLuoo)
requested changes
Aug 5, 2026
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
from
August 6, 2026 13:46
d3eb608 to
85d4b22
Compare
Jeff Luo (JeffLuoo)
previously approved these changes
Aug 6, 2026
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
3 times, most recently
from
August 6, 2026 17:00
22155a2 to
1a7faeb
Compare
Angela (Angelawork)
marked this pull request as draft
August 6, 2026 18:13
Angela (Angelawork)
marked this pull request as ready for review
August 6, 2026 18:13
Collaborator
|
Please do not use |
Angela (Angelawork)
force-pushed
the
feature/eligible-workers-telemetry
branch
from
August 6, 2026 18:15
1a7faeb to
b21e461
Compare
Jeff Luo (JeffLuoo)
self-requested a review
August 6, 2026 18:51
Jeff Luo (JeffLuoo)
approved these changes
Aug 6, 2026
Collaborator
|
For some reasons the CI is not running.. I close and reopen the PR to see if it will trigger the presubmit again. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #564 (Part 3)
Description
This PR implements Part 3 of #564 by adding telemetry histogram instrumentation for
ate.scheduler.eligible_workersinateapi. It measures unassigned free worker capacity remaining after all scheduling constraint filters are applied, sampled at every scheduling decision.Key Changes:
Scheduler.Schedule()to record eligible candidate workers per pool (recordEligibleWorkers).Defined
SchedulingConstraintKey(ate.scheduling.constraint) and constraint classification values (none,required_nodes,selector) ininternal/ateattr/ateattr.go.scheduling_test.gocovering candidate counts, namespaced attributes, zero-capacity fleet states, empty fleets, sandbox class mismatches, draining workers, and constraint classifications.Testing
go test -buildvcs=false ./cmd/ateapi/internal/controlapi/...go test -buildvcs=false ./cmd/atenet/internal/router/...make testE2E Test
./hack/create-kind-cluster.sh./hack/install-ate-kind.sh --deploy-ate-system --deploy-demo-counter./hack/run-e2e.sh ./internal/e2e/suites/metrics/...