kubernetes/pkg/scheduler
Jonathan Basseri 18a8184dce Add warnings about cache invalidation.
Part of https://github.com/kubernetes/kubernetes/pull/63040 is the
assumption that scheduler cache updates must happen before equivalence
cache updates for any given informer event.

The reason for this is that the equivalence cache implementation checks
the main cache for staleness while holding the equiv. cache write lock.

case 1: If an informer invalidates an equiv. cache entry before the
staleness check, then we know that the main cache update completed.

case 2: If an informer blocks trying to grab the equiv. cache lock, then
invalidation will occur right after the potentially stale update is
written.

This patch adds a note to places where we invalidate the equivalence
cache so that hopefully nobody violates this invariant.
2018-05-22 15:15:37 -07:00
..
algorithm Merge pull request #63658 from xchapter7x/pkg-scheduler-algorithm-priorities 2018-05-15 14:12:39 -07:00
algorithmprovider update tests to be specific about the versions they are testing instead of floating 2018-05-01 13:18:41 -04:00
api Add Ignorable flag to extender 2018-03-30 15:10:31 -07:00
core Update generated bazel 2018-05-11 14:25:23 +08:00
factory Add warnings about cache invalidation. 2018-05-22 15:15:37 -07:00
metrics Fix golint errors in pkg/scheduler based on golint check 2018-02-08 15:22:47 +08:00
schedulercache Merge pull request #62934 from wackxu/scto 2018-05-09 09:30:11 -07:00
testing update tests to be specific about the versions they are testing instead of floating 2018-05-01 13:18:41 -04:00
util run make update 2018-04-28 15:43:09 +00:00
volumebinder Use provided node object in volume binding predicate 2018-04-05 14:35:55 -07:00
BUILD run make update 2018-04-28 15:43:09 +00:00
OWNERS Update OWNERS labels for cluster-lifecycle and scheduling 2018-04-05 16:25:04 -05:00
scheduler_test.go move pkg/scheduler/util/testutil.go to pkg/scheduler/testing 2018-04-28 02:36:04 +00:00
scheduler.go Add warnings about cache invalidation. 2018-05-22 15:15:37 -07:00
testutil.go remove unused func in FakeConfigurator of scheduler 2018-01-25 16:08:13 +08:00