r/openstack • u/Phoenyx_Liam • Jan 30 '24
Slow networking in instances
I created the setup on the Opentack guide and followed all the documentation. Managed to get everything to work but the network performance of the instances is extremely poor. I am using vxlans. Can anyone help?
2
Upvotes
6
u/Eldiabolo18 Jan 30 '24
Please dont put too much effort into your posts, otherwise people might be deterred by your wall of text...
2
u/todd_openmetal Jan 30 '24
More to go on will help - but a guess - and this stuff is a bit tricky, so grain of salt as off the top of my head:
I am guessing you mean your OpenStack created networks are using VXLAN - by that I mean your Neutron virtually created networks in a Project - and you are connecting through switches that are using a standard VLAN (or VXLAN actually at the switch level shouldn't matter) - than watch out for "physical" MTUs on your switches.
They have to be higher than a normal MTU (1500 goes to something like 1564, maybe wrong, but you get the idea) to allow for the additional headers that get appended by VXLAN at the Neutron level.
2
u/openmetal_chrisb Jan 31 '24
In our experience we have had similar issues with exactly this. VXLAN is carried inside the VLAN itself, so if you have a lot of networks within it without the proper hardware/settings you will run into latency. Without more information I can only provide some generic advice.
First, the network/vlan that carries your
tenantnetwork should be as high as speed as possible, and all the physical nodes that connect to thetenantnetwork should all be the same.Second, that
tenantnetwork should be set to an overall MTU of 9000 (higher if you want). This allows your VXLAN networks with their standard MTU of 1500 to be carved out of this wider "lane"Lastly, just ensure the networking configurations on the network nodes are at proper values. (https://wiki.openstack.org/wiki/Ml2_conf.ini_File)
With further provided information, we can provide more assistance!
1
u/mariusleus Jan 31 '24
VXLAN can be really slow when you don't have offloading at the NIC level (something like Mellanox or some high-end Intel network cards have). If you don't have such a NIC, then every VXLAN packet goes through the CPU, which, again, depending on the CPU performance, can be really slow.
So 2 points