osism / issues

This repository is used for bug reports that are cross-project or not bound to a specific repository (or to an unknown repository).
https://www.osism.tech
1 stars 1 forks source link

hard anti-affinity for amphorae does not work #344

Open garloff opened 1 year ago

garloff commented 1 year ago

Talking to @maliblatt, I learnt that they had to tweak octavia to only use soft anti-affinity instead of hard anti-affinity in order to make loadbalancers spawn reliably. With hard anti-aff, they would otherwise not reliably succeed in finding two hosts (hypervisors) for the two amphorae.

I believe this should not happen. Assuming that the environment consists of more than a handful of hosts that can host amphorae, chances are very low that there is exactly one hypervisor with capacity for two amphora VMs but no two hypervisors can be found to fit in one amphora VM each.

For me, this raises a few questions:

The workaround is OK'ish (lowering the resilience of LBs a bit), so we have not a high urgency to analyze this. But something is wrong; maybe my limited understanding or maybe something in the way amphorae are scheduled.

berendt commented 1 year ago
Nils98Ar commented 1 year ago

@berendt @garloff Do you know if it’s still needed to use soft-anti-affinity for octavia?

berendt commented 1 year ago

@Nils98Ar We are checking if this still occurs in Zed.

@matfechner Please take care of this.

matfechner commented 1 year ago

@berendt ok