From 4ee22d150dd46c2f56c07db64f1bab024b2f42d6 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Wed, 24 Jan 2024 11:20:46 +0800 Subject: [PATCH] refactor(datanode): use appsv1.ParallelPodManagement to improve deployment performance (#143) --- controllers/greptimedbcluster/deployers/datanode.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/greptimedbcluster/deployers/datanode.go b/controllers/greptimedbcluster/deployers/datanode.go index b12c8c7a..3953e57f 100644 --- a/controllers/greptimedbcluster/deployers/datanode.go +++ b/controllers/greptimedbcluster/deployers/datanode.go @@ -230,8 +230,9 @@ func (b *datanodeBuilder) BuildStatefulSet() deployer.Builder { Namespace: b.Cluster.Namespace, }, Spec: appsv1.StatefulSetSpec{ - ServiceName: common.ResourceName(b.Cluster.Name, b.ComponentKind), - Replicas: b.Cluster.Spec.Datanode.Replicas, + PodManagementPolicy: appsv1.ParallelPodManagement, + ServiceName: common.ResourceName(b.Cluster.Name, b.ComponentKind), + Replicas: b.Cluster.Spec.Datanode.Replicas, Selector: &metav1.LabelSelector{ MatchLabels: map[string]string{ constant.GreptimeDBComponentName: common.ResourceName(b.Cluster.Name, b.ComponentKind),