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
04209c43
Commit
04209c43
authored
Jun 04, 2015
by
Prashanth B
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9274 from lavalamp/logSpam
Demote log spam
parents
b4286918
32caedd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
priorities.go
plugin/pkg/scheduler/algorithm/priorities/priorities.go
+2
-2
No files found.
plugin/pkg/scheduler/algorithm/priorities/priorities.go
View file @
04209c43
...
@@ -62,7 +62,7 @@ func calculateOccupancy(pod *api.Pod, node api.Node, pods []*api.Pod) algorithm.
...
@@ -62,7 +62,7 @@ func calculateOccupancy(pod *api.Pod, node api.Node, pods []*api.Pod) algorithm.
cpuScore
:=
calculateScore
(
totalMilliCPU
,
capacityMilliCPU
,
node
.
Name
)
cpuScore
:=
calculateScore
(
totalMilliCPU
,
capacityMilliCPU
,
node
.
Name
)
memoryScore
:=
calculateScore
(
totalMemory
,
capacityMemory
,
node
.
Name
)
memoryScore
:=
calculateScore
(
totalMemory
,
capacityMemory
,
node
.
Name
)
glog
.
V
(
4
)
.
Infof
(
glog
.
V
(
10
)
.
Infof
(
"%v -> %v: Least Requested Priority, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d, %d)"
,
"%v -> %v: Least Requested Priority, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d, %d)"
,
pod
.
Name
,
node
.
Name
,
pod
.
Name
,
node
.
Name
,
totalMilliCPU
,
totalMemory
,
totalMilliCPU
,
totalMemory
,
...
@@ -190,7 +190,7 @@ func calculateBalancedResourceAllocation(pod *api.Pod, node api.Node, pods []*ap
...
@@ -190,7 +190,7 @@ func calculateBalancedResourceAllocation(pod *api.Pod, node api.Node, pods []*ap
diff
:=
math
.
Abs
(
cpuFraction
-
memoryFraction
)
diff
:=
math
.
Abs
(
cpuFraction
-
memoryFraction
)
score
=
int
(
10
-
diff
*
10
)
score
=
int
(
10
-
diff
*
10
)
}
}
glog
.
V
(
4
)
.
Infof
(
glog
.
V
(
10
)
.
Infof
(
"%v -> %v: Balanced Resource Allocation, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d)"
,
"%v -> %v: Balanced Resource Allocation, Absolute/Requested: (%d, %d) / (%d, %d) Score: (%d)"
,
pod
.
Name
,
node
.
Name
,
pod
.
Name
,
node
.
Name
,
totalMilliCPU
,
totalMemory
,
totalMilliCPU
,
totalMemory
,
...
...
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