Skip to content

Conversation

@brinkenberger
Copy link

@brinkenberger brinkenberger commented Jul 18, 2025

Currently it is not possible to distribute the deployment in different availability zones (AZ).

Say I have replicas: 3 and three zones:

AZ1: Node1, Node2
AZ2: Node3, Node4
AZ3: Node5, Node6

The following config can currently happen:
Replica 1: Node 1 / AZ1
Replica 2: Node 2 / AZ1
Replica 3: Node 3 / AZ2

I want the scheduler instead to prefer this config:
Replica 1: Node 1 / AZ1
Replica 2: Node 3 / AZ2
Replica 3: Node 5 / AZ3

By supporting topologySpreadConstraints, this is possible.

Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@weaviate-git-bot
Copy link

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@antas-marcin
Copy link
Collaborator

@brinkenberger welcome! and thank you for your contribution I have a question: is your PR ready for review?

@brinkenberger
Copy link
Author

Hey, the PR can be closed. As mentioned in another issue, topologySpreadConstraints is not necessary, just use podAntiAffinity.

If you want to continue on this PR, feel free to do so.

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.

3 participants