r/openstack • • 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

9 comments sorted by

View all comments

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.

1

u/vb6ko Sep 14 '19

Interesting. That's very reasonable to explain of Python's existance I guess.

Python has a lot of system(kernel) inspection library and most of them are cross-platform.

Furthermore they are also quite mature and stable because many system engineers used/use it as high level of bash script I guess haha.

Oh cool. Even Golang cannot replace it since Go is compile lang so Python's super independent interpreter wins in this part. Thank you so much.