Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e3c57477
Unverified
Commit
e3c57477
authored
Jan 18, 2018
by
Reficul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a little typo in BalancedResourceAllocation
Signed-off-by:
Reficul
<
xuzhenglun@gmail.com
>
parent
48f69ac9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
balanced_resource_allocation.go
...uler/algorithm/priorities/balanced_resource_allocation.go
+2
-2
No files found.
pkg/scheduler/algorithm/priorities/balanced_resource_allocation.go
View file @
e3c57477
...
@@ -24,7 +24,7 @@ import (
...
@@ -24,7 +24,7 @@ import (
)
)
var
(
var
(
balance
ResourcePriority
=
&
ResourceAllocationPriority
{
"Balance
ResourceAllocation"
,
balancedResourceScorer
}
balance
dResourcePriority
=
&
ResourceAllocationPriority
{
"Balanced
ResourceAllocation"
,
balancedResourceScorer
}
// BalancedResourceAllocationMap favors nodes with balanced resource usage rate.
// BalancedResourceAllocationMap favors nodes with balanced resource usage rate.
// BalancedResourceAllocationMap should **NOT** be used alone, and **MUST** be used together
// BalancedResourceAllocationMap should **NOT** be used alone, and **MUST** be used together
...
@@ -33,7 +33,7 @@ var (
...
@@ -33,7 +33,7 @@ var (
// Detail: score = 10 - abs(cpuFraction-memoryFraction)*10. The algorithm is partly inspired by:
// Detail: score = 10 - abs(cpuFraction-memoryFraction)*10. The algorithm is partly inspired by:
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
// "Wei Huang et al. An Energy Efficient Virtual Machine Placement Algorithm with Balanced
// Resource Utilization"
// Resource Utilization"
BalancedResourceAllocationMap
=
balanceResourcePriority
.
PriorityMap
BalancedResourceAllocationMap
=
balance
d
ResourcePriority
.
PriorityMap
)
)
func
balancedResourceScorer
(
requested
,
allocable
*
schedulercache
.
Resource
)
int64
{
func
balancedResourceScorer
(
requested
,
allocable
*
schedulercache
.
Resource
)
int64
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment