Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add topologyspreadconstraint to deploy pods in sts cross different az evenly #526

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

wangshu3000
Copy link
Contributor

Fixes #521

Motivation

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.
Reference doc: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

Modifications

Added 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.

Verifying this change

  • Make sure that the change passes the CI checks.

@lhotari
Copy link
Member

lhotari commented Sep 26, 2024

Closing and reopening to trigger a new GitHub Actions workflow run after 6b31946

@lhotari lhotari closed this Sep 26, 2024
@lhotari lhotari reopened this Sep 26, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution @wangshu3000

@lhotari lhotari merged commit a45bc4b into apache:master Sep 27, 2024
34 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brokers should be deployed to different AZ, we better add topology spread contstraint
2 participants