Skip to content

Commit

Permalink
refactor(datanode): use appsv1.ParallelPodManagement to improve deplo…
Browse files Browse the repository at this point in the history
…yment performance (#143)
  • Loading branch information
zyy17 authored Jan 24, 2024
1 parent 825434e commit 4ee22d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/greptimedbcluster/deployers/datanode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4ee22d1

Please sign in to comment.