apache / pulsar-helm-chart

Official Apache Pulsar Helm Chart
https://pulsar.apache.org/
Apache License 2.0
212 stars 224 forks source link

Brokers should be deployed to different AZ, we better add topology spread contstraint #521

Closed wangshu3000 closed 2 months ago

wangshu3000 commented 3 months ago

Is your feature request related to a problem? Please describe. I see broker sts doesn't support topology constraint configuration. That means 2 pods in the sts may possible depoyed to on az in kubernetes cluster.

Describe the solution you'd like We can add a topology spread constraint configuration to deployed the pods in sts spread to different az, so that under an AZ outage, the impact can be only limited to small number of brokers.

Additional context Reference about topology spread constraint: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

If it make sense, i can raise a PR to add it.

Thanks