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

fix: watch and enqueue node events when scheduler enabled #1352

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

rohantmp
Copy link
Contributor

@rohantmp rohantmp commented Nov 13, 2023

when using the vcluster scheduler we take into account consumed resources in the pod, but don't immediately trigger the node syncer to do this. This sometimes leads to scheduling resources onto nodes where they don't fit.

Signed-off-by: Rohan CJ [email protected]

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix
/kind enhancement
/kind feature
/kind documentation
/kind test

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves ENG-2340

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster scheduler was late to see resource consumption

What else do we need to know?

@rohantmp rohantmp requested a review from FabianKramm November 13, 2023 11:51
@rohantmp
Copy link
Contributor Author

Updated description

@rohantmp rohantmp force-pushed the fixNodeSyncingScheduler branch from e23edb0 to 8273c96 Compare November 13, 2023 12:13
@rohantmp
Copy link
Contributor Author

cleaned up some comments, removed a debug statement

pkg/controllers/resources/nodes/syncer.go Outdated Show resolved Hide resolved
pkg/constants/indices.go Outdated Show resolved Hide resolved
pkg/controllers/resources/nodes/syncer.go Outdated Show resolved Hide resolved
@rohantmp rohantmp force-pushed the fixNodeSyncingScheduler branch from 8273c96 to ed4c781 Compare November 14, 2023 10:56
@rohantmp rohantmp force-pushed the fixNodeSyncingScheduler branch from ed4c781 to 1a51cf3 Compare November 14, 2023 11:12
@FabianKramm FabianKramm merged commit 7b25ac6 into loft-sh:main Nov 15, 2023
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants