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
3b25ff11
Commit
3b25ff11
authored
Jun 08, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9341 from bprashanth/sched_events
Reduce noisy scheduler events
parents
bdd8e183
4bb3efaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
generic_scheduler.go
plugin/pkg/scheduler/generic_scheduler.go
+5
-3
No files found.
plugin/pkg/scheduler/generic_scheduler.go
View file @
3b25ff11
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/algorithm"
"github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/algorithm"
"github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/algorithm/predicates"
"github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/algorithm/predicates"
"github.com/golang/glog"
)
)
type
FailedPredicateMap
map
[
string
]
util
.
StringSet
type
FailedPredicateMap
map
[
string
]
util
.
StringSet
...
@@ -40,11 +41,12 @@ var ErrNoNodesAvailable = fmt.Errorf("no nodes available to schedule pods")
...
@@ -40,11 +41,12 @@ var ErrNoNodesAvailable = fmt.Errorf("no nodes available to schedule pods")
// implementation of the error interface
// implementation of the error interface
func
(
f
*
FitError
)
Error
()
string
{
func
(
f
*
FitError
)
Error
()
string
{
output
:=
fmt
.
Sprintf
(
"failed to find fit for pod, "
)
predicates
:=
util
.
NewStringSet
(
)
for
node
,
predicateList
:=
range
f
.
FailedPredicates
{
for
node
,
predicateList
:=
range
f
.
FailedPredicates
{
output
=
output
+
fmt
.
Sprintf
(
"Node %s: %s"
,
node
,
strings
.
Join
(
predicateList
.
List
(),
","
))
predicates
=
predicates
.
Union
(
predicateList
)
glog
.
Infof
(
"failed to find fit for pod %v on node %s: %s"
,
f
.
Pod
.
Name
,
node
,
strings
.
Join
(
predicateList
.
List
(),
","
))
}
}
return
output
return
fmt
.
Sprintf
(
"For each of these fitness predicates, pod %v failed on at least one node: %v."
,
f
.
Pod
.
Name
,
strings
.
Join
(
predicates
.
List
(),
","
))
}
}
type
genericScheduler
struct
{
type
genericScheduler
struct
{
...
...
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