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
a26a1ae5
Commit
a26a1ae5
authored
Nov 24, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17438 from spiffxp/sched-v-levels
Auto commit by PR queue bot
parents
2a925711
fad19680
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
priorities.go
plugin/pkg/scheduler/algorithm/priorities/priorities.go
+1
-1
generic_scheduler.go
plugin/pkg/scheduler/generic_scheduler.go
+1
-1
No files found.
plugin/pkg/scheduler/algorithm/priorities/priorities.go
View file @
a26a1ae5
...
@@ -34,7 +34,7 @@ func calculateScore(requested int64, capacity int64, node string) int {
...
@@ -34,7 +34,7 @@ func calculateScore(requested int64, capacity int64, node string) int {
return
0
return
0
}
}
if
requested
>
capacity
{
if
requested
>
capacity
{
glog
.
Infof
(
"Combined requested resources %d from existing pods exceeds capacity %d on node %s"
,
glog
.
V
(
2
)
.
Infof
(
"Combined requested resources %d from existing pods exceeds capacity %d on node %s"
,
requested
,
capacity
,
node
)
requested
,
capacity
,
node
)
return
0
return
0
}
}
...
...
plugin/pkg/scheduler/generic_scheduler.go
View file @
a26a1ae5
...
@@ -44,7 +44,7 @@ func (f *FitError) Error() string {
...
@@ -44,7 +44,7 @@ func (f *FitError) Error() string {
var
reason
string
var
reason
string
// We iterate over all nodes for logging purposes, even though we only return one reason from one node
// We iterate over all nodes for logging purposes, even though we only return one reason from one node
for
node
,
predicateList
:=
range
f
.
FailedPredicates
{
for
node
,
predicateList
:=
range
f
.
FailedPredicates
{
glog
.
Infof
(
"Failed to find fit for pod %v on node %s: %s"
,
f
.
Pod
.
Name
,
node
,
strings
.
Join
(
predicateList
.
List
(),
","
))
glog
.
V
(
2
)
.
Infof
(
"Failed to find fit for pod %v on node %s: %s"
,
f
.
Pod
.
Name
,
node
,
strings
.
Join
(
predicateList
.
List
(),
","
))
if
len
(
reason
)
==
0
{
if
len
(
reason
)
==
0
{
reason
,
_
=
predicateList
.
PopAny
()
reason
,
_
=
predicateList
.
PopAny
()
}
}
...
...
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