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

koord-descheduler: limits frequently migrated workloads #950

Conversation

eahydra
Copy link
Member

@eahydra eahydra commented Jan 11, 2023

Signed-off-by: Joseph joseph.t.lee@outlook.com

Ⅰ. Describe what this PR does

The migrationJob controller in koord-descheduler supports that limits frequently migrated workloads

  • Add configuration field objectLimiters to support control the limit duration and thresholds.
  • Now just limits workload. By default if one workload's migrating Pods exceed the maxMigrating in the duration , the workload will be limited. By default the duration is 5 minutes, maxMigrating is nil that means will use maxMigratingPerWorkload instead.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@codecov
Copy link

codecov bot commented Jan 11, 2023

Codecov Report

Base: 66.99% // Head: 66.99% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (d7170ce) compared to base (fd4432b).
Patch coverage: 68.91% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #950      +/-   ##
==========================================
- Coverage   66.99%   66.99%   -0.01%     
==========================================
  Files         243      243              
  Lines       28166    28240      +74     
==========================================
+ Hits        18871    18919      +48     
- Misses       8008     8026      +18     
- Partials     1287     1295       +8     
Flag Coverage Δ
unittests 66.99% <68.91%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/descheduler/controllers/migration/util/util.go 65.07% <0.00%> (ø)
...kg/descheduler/controllers/migration/controller.go 61.93% <61.11%> (+0.03%) ⬆️
pkg/descheduler/controllers/migration/filter.go 79.61% <72.72%> (-2.51%) ⬇️
pkg/util/httputil/reverseproxy.go 84.30% <0.00%> (-1.60%) ⬇️
pkg/koordlet/runtimehooks/reconciler/reconciler.go 67.05% <0.00%> (+1.17%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@eahydra eahydra changed the title koord-descheduler: supports freezing frequently migrated workloads koord-descheduler: freezing frequently migrated workloads Jan 11, 2023
@eahydra eahydra force-pushed the descheduler_migration_support_frozen branch 2 times, most recently from 63ea6c6 to db07d13 Compare January 13, 2023 03:58
@eahydra eahydra changed the title koord-descheduler: freezing frequently migrated workloads koord-descheduler: limits frequently migrated workloads Jan 13, 2023
@zwzhang0107
Copy link
Contributor

/lgtm

Signed-off-by: Joseph <joseph.t.lee@outlook.com>
@eahydra eahydra force-pushed the descheduler_migration_support_frozen branch from 3aacd47 to d7170ce Compare January 13, 2023 06:24
@zwzhang0107
Copy link
Contributor

/lgtm

@koordinator-bot koordinator-bot bot added the lgtm label Jan 13, 2023
@hormes
Copy link
Member

hormes commented Jan 13, 2023

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hormes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@koordinator-bot koordinator-bot bot merged commit 388f7ad into koordinator-sh:main Jan 13, 2023
FillZpp pushed a commit to FillZpp/koordinator that referenced this pull request Jan 13, 2023
…sh#950)

Signed-off-by: Joseph <joseph.t.lee@outlook.com>
Signed-off-by: Siyu Wang <FillZpp.pub@gmail.com>
FillZpp pushed a commit that referenced this pull request Jan 16, 2023
Signed-off-by: Joseph <joseph.t.lee@outlook.com>
Signed-off-by: Siyu Wang <FillZpp.pub@gmail.com>
lucming pushed a commit to lucming/koordinator that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants