[Nova Scheduler]Is there a way to choose in which processor's core a VM will run?

asked 2016-10-14 11:58:47 -0500

bernardo gravatar image

Hi Openstack community, I'm currently developing a custom scheduler for a openstack-managed cluster. The problem is, I'm taking into consideration the cores in the cluster processors (for example in the scheduler's prototype, I can "instantiate" a VM on Node1->processor2->core3 and then another instance in Node1->processor2->core1). So, does openstack's default scheduler (filter scheduler) actually care about the cores?, if so, where in the default scheduler's code can I see how the cores are being selected? Thanks!

edit retag flag offensive close merge delete


I am not sure, but have you seen this Article ?

Also read abt overcommit ratio Thread

sunnyarora gravatar imagesunnyarora ( 2016-10-16 03:38:25 -0500 )edit

I agree. You probably want something like CPU pinning. The actual code is located in /usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py

dkt26111 gravatar imagedkt26111 ( 2016-10-17 11:32:03 -0500 )edit