ovn-org / ovn-heater

Mega script to deploy/configure/run OVN scale tests.
Apache License 2.0
12 stars 12 forks source link

Predictable and balanced GW Chassis distribution in CMS Openstack #184

Open mkalcok opened 11 months ago

mkalcok commented 11 months ago

As pointed out by @dceara https://github.com/ovn-org/ovn-heater/pull/179#discussion_r1373771371, ovn-heater run should be consistent and reproducible, that's why random assignment of GW chassis to router ports in Openstack CMS is not the best approach.

Alternative to this could be a round-robin distribution of GWs to ports. This sounds deceivingly simple, but we need to keep in mind that it's not only about evenly distributing GWs to ports, it's also about balanced distribution of priorities these GWs receive. We need to ensure that high priority is not accumulated on single GW.

Example of bad distribution:

# Port   # GW    # Priority 
port1    gw1       1
port1    gw2       2
port1    gw3       3

port2    gw1       1
port2    gw2       2
port2    gw3       3

port3    gw1       1
port3    gw2       2
port3    gw3       3

In above example, 3 GWs are evenly distributed between 3 ports, but all the ports prioritize gw1