r/openstack • u/vb6ko • Sep 14 '19
Python? any performance issues?
Hello,
I'm just starting to learn Cloud Computing.
I thought the performance is of significance, and Python is not suitable.
But I just figured out that OpenStack is made by Python.
I totally agree that "Language is only the tool".
but you know, in practice, getting used to language gives us big synergies.
So.... I wanna know why they use python. And could you recommend me some promising language for cloud computing.
p.s.
also I think Python is not suitable for bigger projects because of ... like.. typeless and so on.
AFAIK, that's why typescript is getting popular.
0
Upvotes
2
u/[deleted] Sep 14 '19
Python is used to handle the business logic of tying various optimized components together.
If the hypervisor tech is KVM, then the Python code is responsible for surveying running hypervisors for their capabilities, running state, CPU hardware features, etc. It takes this information and stores it in various locations for analysis when moving a VM (finding a suitable hypervisor) or other things.
If the network stack uses Openvswitch, then python is used to ask various OVS switches how they're feeling, what's connected to them, how to bind to the host iptables firewall, and so on.
KVM and OVS are very well optimised using well written C code.