Commit Graph

445 Commits

Author SHA1 Message Date
Jakub Tużnik 7a188ab50d Provide ScaleDownStatusProcessor with info about unremovable nodes 2020-02-11 15:27:33 +01:00
Łukasz Osipiuk 4b30a6f499 Rename propagateClusterSnapshot to initializeClusterSnapshot 2020-02-04 20:52:08 +01:00
Łukasz Osipiuk 7b67d3f582 klog.Fatalf on error from ClusterSnapshot.Revert() 2020-02-04 20:52:07 +01:00
Łukasz Osipiuk e5c60c81a9 Remove Estimator's upcoming nodes paramter 2020-02-04 20:52:04 +01:00
Łukasz Osipiuk 0dca11fa11 Remove InitializeClusterSnapshotNoError function 2020-02-04 20:52:02 +01:00
Łukasz Osipiuk 6ed2636f10 Drop PredicateChecker.SnapshotClusterState 2020-02-04 20:51:52 +01:00
Łukasz Osipiuk 074254952b Make ClusterSnapshot extend scheduler's SharedLister interface 2020-02-04 20:51:51 +01:00
Łukasz Osipiuk 98efd05b4b Do not add Pods pointing to inexistent nodes to snapshot 2020-02-04 20:51:49 +01:00
Łukasz Osipiuk d7770e3044 Use ClusterSnapshot in ScaleDown 2020-02-04 20:51:48 +01:00
Łukasz Osipiuk 57615ba0b0 Use ClusterSnapshot in GetDaemonSetPodsForNode 2020-02-04 20:51:46 +01:00
Łukasz Osipiuk 9433ef9ffa Use ClusterSnapshot in ScaleUp 2020-02-04 20:51:43 +01:00
Łukasz Osipiuk 9bb2fd15d7 Add TODO 2020-02-04 20:51:42 +01:00
Łukasz Osipiuk 69800ab176 Simulate scheduling of pods waiting for preemption in ClusterSnapshot 2020-02-04 20:51:37 +01:00
Łukasz Osipiuk d9891ae3ad Simplify PodListProcessor interface 2020-02-04 20:51:35 +01:00
Łukasz Osipiuk 014eff3ec8 Migrate filter_out_schedulable to use CluseterSnapshot 2020-02-04 20:51:34 +01:00
Łukasz Osipiuk 8ddcb21571 Introduce IsExpendablePod helper function 2020-02-04 20:51:32 +01:00
Łukasz Osipiuk 7e62105cb9 Add upcoming nodes to ClusterSnapshot 2020-02-04 20:51:31 +01:00
Łukasz Osipiuk 83d1c4ff8a Add GetAllPods and GetAllNodes to ClusterSnapshot 2020-02-04 20:51:30 +01:00
Łukasz Osipiuk 30ce46cc28 Pass ClusterSnapshot to BinpackingNodeEstimator 2020-02-04 20:51:29 +01:00
Łukasz Osipiuk fa2c6e4d9e Propagate cluster state to ClusterSnapshot 2020-02-04 20:51:27 +01:00
Łukasz Osipiuk 036103c553 Add ClusterSnapshot to AutoscalingContext 2020-02-04 20:51:26 +01:00
Łukasz Osipiuk 6b2287af4f Pass ClusterSnaphost explicitly to PredicateChecker 2020-02-04 20:51:24 +01:00
Łukasz Osipiuk db85b1b6f1 Implement NewTestPredicateChecker 2020-02-04 20:51:20 +01:00
Łukasz Osipiuk 373c558303 Extract PredicateChecker interface 2020-02-04 20:51:18 +01:00
Łukasz Osipiuk b01f2fca8f Drop ConfigurePredicateCheckerForLoop 2020-02-04 20:51:14 +01:00
Łukasz Osipiuk b0c6d25182 Cleanup simulator.PredicateError 2020-02-04 20:51:11 +01:00
Łukasz Osipiuk 4a2b8c7dfc Remove use of PredicateMetadata 2020-02-04 20:51:05 +01:00
Łukasz Osipiuk 1469058470 Get rid of removed testapis 2020-02-04 20:51:03 +01:00
Aleksandra Malinowska c83d609352 Compute expansion options for additional created groups 2020-02-03 17:54:05 +01:00
Aleksandra Malinowska 3614d4ec33 Test balancing autoprovisioned node groups 2020-02-03 17:54:02 +01:00
Łukasz Osipiuk e70e7dc9f8 Add clarifying comments to filterOutSchedulablePodListProcessor 2020-01-29 13:14:27 +01:00
Łukasz Osipiuk 51b74f03ae Always filter out schedulable against upcoming nodes 2020-01-29 13:11:39 +01:00
Łukasz Osipiuk dd9fe48f46 Remove filterOutSchedulableSimple 2020-01-29 13:11:38 +01:00
Łukasz Osipiuk e2ca403123 Return error from NewScaleTestAutoscalingContext 2020-01-29 11:22:07 +01:00
Łukasz Osipiuk f419498b07 Do not compare StartTime for unschedulable pods
Using standard MostImportantPod function for pods which do not have
Status.StartTime set result in Error log message which kills
scalability.
2020-01-27 19:12:00 +01:00
Aleksandra Malinowska 0953e0dd63 Use ElementMatch instead of Subsets 2020-01-15 19:41:06 +01:00
Aleksandra Malinowska d6849e82b6 Simplify equivalence group usage 2020-01-15 19:40:45 +01:00
Aleksandra Malinowska ed151e637c Add scale up test with triggering, remaining & unschedulable pods 2020-01-15 19:40:41 +01:00
Aleksandra Malinowska 93b01c0fa9 Add verifying scale up status in scale up tests 2020-01-15 18:44:30 +01:00
Aleksandra Malinowska 10312aef20 Fix typo in 'equivalence' 2020-01-15 18:44:17 +01:00
Łukasz Osipiuk cdcc693ab9 Remove OldBinpackingEstimator 2020-01-14 15:29:16 +01:00
Maciej Pytel a7fd937112 Remove taints with specific prefix from template node
This is the same functionality as what you get with --ignore-taint
flag, but it doesn't require updating CA config to add a new taint
to ignore.
2020-01-14 13:21:17 +01:00
Łukasz Osipiuk 90a7e47123 Add GPU taint toleration for test pods requiring GPUs 2020-01-03 11:22:21 +01:00
dasydong 68433abb7c Remove duplicate comments 2019-12-28 01:06:22 +08:00
Aleksandra Malinowska 383199ab6e Ignore node termination taint in scale up 2019-12-11 16:14:27 +01:00
Kubernetes Prow Robot f6ed9c114a
Merge pull request #2588 from losipiuk/lo/snapshot
Snapshot cluster state for scheduler every loop
2019-11-28 05:25:03 -08:00
Łukasz Osipiuk b67854e800 Snapshot cluster state for scheduler every loop
Change-Id: If9d162b83ccc914fe1b02e4689bfe1f4b264407f
2019-11-28 14:02:08 +01:00
Łukasz Osipiuk 17a7bc5164 Ignore NominatedNodeName on Pod if node is gone
Change-Id: I4a119f46e55ca2223f9f0fdd3e75ce3f279e293b
2019-11-27 20:26:00 +01:00
Łukasz Osipiuk 8161ca6fdb Use taint keys from k8s.io/api/core/v1 module 2019-11-22 14:08:18 +01:00
Łukasz Osipiuk f50d9ecce2 Use MoreImportantPod instead GetPodPriority 2019-11-22 14:07:48 +01:00