kubernetes/plugin/pkg/scheduler
Kubernetes Submit Queue 914f5d659e Merge pull request #47003 from aveshagarwal/master-scheduler-aggregate-errors-issue
Automatic merge from submit-queue (batch tested with PRs 45877, 46846, 46630, 46087, 47003)

Remove duplicate errors from an aggregate error input.

This PR, in general, removes duplicate errors from an aggregate error input, and returns unique errors with their occurrence count. Specifically,  this PR helps with some scheduler errors that fill the log enormously. For example, see the following `truncated` output from a 300-plus nodes cluster, as there was a same error from almost all nodes.


[SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected., SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found.........

After this PR, the output looks like (on a 2-node cluster):

SchedulerPredicates failed due to persistentvolumeclaims "mongodb" not found, which is unexpected.(Count=2)

@derekwaynecarr @smarterclayton @kubernetes/sig-scheduling-pr-reviews 

Fixes https://github.com/kubernetes/kubernetes/issues/47145
2017-06-07 17:55:52 -07:00
..
algorithm Merge pull request #46621 from gyliu513/NodeSelectorMatches 2017-06-06 02:21:44 -07:00
algorithmprovider Merge pull request #46621 from gyliu513/NodeSelectorMatches 2017-06-06 02:21:44 -07:00
api Added Bind method to Scheduler Extender 2017-06-05 09:44:53 -07:00
core Merge pull request #47003 from aveshagarwal/master-scheduler-aggregate-errors-issue 2017-06-07 17:55:52 -07:00
factory Merge pull request #44115 from derekwaynecarr/reduce-logging-severity 2017-06-06 18:48:14 -07:00
metrics autogenerated 2017-04-14 10:40:57 -07:00
schedulercache Merge pull request #46456 from jingxu97/May/allocatable 2017-06-03 00:24:29 -07:00
testing autogenerated 2017-04-14 10:40:57 -07:00
util Added unit test for node operation in schedulercache. 2017-05-31 21:26:04 +08:00
BUILD Scheduler should use a shared informer 2017-05-22 13:50:14 -04:00
OWNERS Added k82cn as kube-scheduler approver. 2017-05-26 22:26:20 +08:00
scheduler_test.go Initialize scheduler cache with assigned non-terminated pods before scheduling. 2017-05-10 01:50:38 +08:00
scheduler.go Added Bind method to Scheduler Extender 2017-06-05 09:44:53 -07:00
testutil.go Removed old scheduler constructor. 2017-05-08 11:09:25 -04:00