From c65a6bb4ea7affc1fb1d0f7ccf20961e20d04152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tu=C5=BCnik?= Date: Tue, 14 Apr 2020 15:27:55 +0200 Subject: [PATCH] Scalability: Switch to deltaClusterSnapshot This massively speeds up checking predicates. --- cluster-autoscaler/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster-autoscaler/main.go b/cluster-autoscaler/main.go index bcbf14c28c4b..b6fc06baa1da 100644 --- a/cluster-autoscaler/main.go +++ b/cluster-autoscaler/main.go @@ -43,6 +43,7 @@ import ( "k8s.io/autoscaler/cluster-autoscaler/metrics" ca_processors "k8s.io/autoscaler/cluster-autoscaler/processors" "k8s.io/autoscaler/cluster-autoscaler/processors/nodegroupset" + "k8s.io/autoscaler/cluster-autoscaler/simulator" "k8s.io/autoscaler/cluster-autoscaler/utils/errors" kube_util "k8s.io/autoscaler/cluster-autoscaler/utils/kubernetes" "k8s.io/autoscaler/cluster-autoscaler/utils/units" @@ -293,6 +294,7 @@ func buildAutoscaler() (core.Autoscaler, error) { opts := core.AutoscalerOptions{ AutoscalingOptions: autoscalingOptions, + ClusterSnapshot: simulator.NewDeltaClusterSnapshot(), KubeClient: kubeClient, EventsKubeClient: eventsKubeClient, }