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
7c94c518
Commit
7c94c518
authored
Nov 28, 2016
by
jayunit100
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[scheduler] Use V(10) for anything which may be O(N*P) logging
parent
545f749a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
metadata.go
plugin/pkg/scheduler/algorithm/predicates/metadata.go
+1
-1
predicates.go
plugin/pkg/scheduler/algorithm/predicates/predicates.go
+1
-1
least_requested.go
plugin/pkg/scheduler/algorithm/priorities/least_requested.go
+1
-1
most_requested.go
plugin/pkg/scheduler/algorithm/priorities/most_requested.go
+1
-1
No files found.
plugin/pkg/scheduler/algorithm/predicates/metadata.go
View file @
7c94c518
...
@@ -52,7 +52,7 @@ func (pfactory *PredicateMetadataFactory) GetMetadata(pod *v1.Pod, nodeNameToInf
...
@@ -52,7 +52,7 @@ func (pfactory *PredicateMetadataFactory) GetMetadata(pod *v1.Pod, nodeNameToInf
matchingAntiAffinityTerms
:
matchingTerms
,
matchingAntiAffinityTerms
:
matchingTerms
,
}
}
for
predicateName
,
precomputeFunc
:=
range
predicatePrecomputations
{
for
predicateName
,
precomputeFunc
:=
range
predicatePrecomputations
{
glog
.
V
(
4
)
.
Info
(
"Precompute: %v"
,
predicateName
)
glog
.
V
(
10
)
.
Info
(
"Precompute: %v"
,
predicateName
)
precomputeFunc
(
predicateMetadata
)
precomputeFunc
(
predicateMetadata
)
}
}
return
predicateMetadata
return
predicateMetadata
...
...
plugin/pkg/scheduler/algorithm/predicates/predicates.go
View file @
7c94c518
...
@@ -417,7 +417,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta interface{}, nodeInfo *s
...
@@ -417,7 +417,7 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta interface{}, nodeInfo *s
}
}
nodeV
,
_
:=
nodeConstraints
[
k
]
nodeV
,
_
:=
nodeConstraints
[
k
]
if
v
!=
nodeV
{
if
v
!=
nodeV
{
glog
.
V
(
2
)
.
Infof
(
"Won't schedule pod %q onto node %q due to volume %q (mismatch on %q)"
,
pod
.
Name
,
node
.
Name
,
pvName
,
k
)
glog
.
V
(
10
)
.
Infof
(
"Won't schedule pod %q onto node %q due to volume %q (mismatch on %q)"
,
pod
.
Name
,
node
.
Name
,
pvName
,
k
)
return
false
,
[]
algorithm
.
PredicateFailureReason
{
ErrVolumeZoneConflict
},
nil
return
false
,
[]
algorithm
.
PredicateFailureReason
{
ErrVolumeZoneConflict
},
nil
}
}
}
}
...
...
plugin/pkg/scheduler/algorithm/priorities/least_requested.go
View file @
7c94c518
...
@@ -49,7 +49,7 @@ func calculateUnusedScore(requested int64, capacity int64, node string) int64 {
...
@@ -49,7 +49,7 @@ func calculateUnusedScore(requested int64, capacity int64, node string) int64 {
return
0
return
0
}
}
if
requested
>
capacity
{
if
requested
>
capacity
{
glog
.
V
(
4
)
.
Infof
(
"Combined requested resources %d from existing pods exceeds capacity %d on node %s"
,
glog
.
V
(
10
)
.
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/algorithm/priorities/most_requested.go
View file @
7c94c518
...
@@ -53,7 +53,7 @@ func calculateUsedScore(requested int64, capacity int64, node string) int64 {
...
@@ -53,7 +53,7 @@ func calculateUsedScore(requested int64, capacity int64, node string) int64 {
return
0
return
0
}
}
if
requested
>
capacity
{
if
requested
>
capacity
{
glog
.
V
(
4
)
.
Infof
(
"Combined requested resources %d from existing pods exceeds capacity %d on node %s"
,
glog
.
V
(
10
)
.
Infof
(
"Combined requested resources %d from existing pods exceeds capacity %d on node %s"
,
requested
,
capacity
,
node
)
requested
,
capacity
,
node
)
return
0
return
0
}
}
...
...
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