-
Notifications
You must be signed in to change notification settings - Fork 94
feat: add descheduler addon #920
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
Open
FrankYang0529
wants to merge
3
commits into
harvester:main
Choose a base branch
from
FrankYang0529:HARV-2311
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| --- | ||
| sidebar_position: 10 | ||
| sidebar_label: Descheduler | ||
| title: "Descheduler" | ||
| --- | ||
|
|
||
| _Available as of v1.7.0_ | ||
|
|
||
| [`descheduler`](https://github.com/kubernetes-sigs/descheduler) is used to improve the scheduling of workloads by evicting pods that are not optimally placed according to defined policies. This helps to enhance resource utilization, balance workloads across nodes, and improve overall cluster performance. | ||
|
|
||
| ## Enabling `descheduler` Add-on | ||
|
|
||
| Enable `descheduler` add-on to deploy the Descheduler to a Harvester cluster for improved workload scheduling and resource utilization. | ||
|
|
||
| 1. On the Harvester UI, go to **Advanced** > **Add-ons**. | ||
|
|
||
| 1. Select **descheduler (Experimental)**, and then select **⋮** > **Enable**. | ||
|
|
||
|  | ||
|
|
||
| The add-on can only be enabled when there are more than one node in the cluster. It will deploy a `kube-system/descheduler` deployment and a related configuration in `kube-system/descheduler` ConfigMap. | ||
|
|
||
| ## Customizing Descheduler Policies | ||
|
|
||
| Click the **Edit YAML** button to customize the descheduler policies according to your requirements. The configuration is defined in a YAML format. | ||
FrankYang0529 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|  | ||
|
|
||
|  | ||
|
|
||
| * `deschedulingInterval`: Specifies how often the descheduler runs. The default is set to 5 minutes. | ||
| * `maxNoOfPodsToEvictPerNode`: Limits the number of pods that can be evicted during a single descheduling cycle. The default is set to 5. | ||
| * `evictableNamespaces.exclude`: Namespaces that should be excluded from eviction. By default, the system namespaces are excluded to protect critical system components. | ||
| * `thresholds` and `targetThresholds`: Define resource usage thresholds to determine when pods should be evicted to balance resource utilization across nodes. The default values only contain CPU and memory. You can add additional resources as needed. It evicts pods from overutilized nodes (those with usage above `targetThresholds`) to underutilized nodes (those with usage below `thresholds`). | ||
|
|
||
| ## Disabling `descheduler` Add-on | ||
|
|
||
| 1. On the Harvester UI, go to **Advanced** > **Add-ons**. | ||
|
|
||
| 1. Select **descheduler (Experimental)**, and then select **⋮** > **Disable**. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Uh oh!
There was an error while loading. Please reload this page.