Re: [openstack-dev] [Nova] [Cyborg] why cyborg can not support an accelerators info list for more than one host?

2018-03-21 Thread 少合冯
got it, thanks. 2018-03-22 0:50 GMT+08:00 Ed Leafe : > On Mar 21, 2018, at 11:35 AM, 少合冯 wrote: > > > >> By default, hosts are weighed one by one. You can subclass the > BaseWeigher (in nova/weights.py) to weigh all objects at once. > > > > Does that means it require call cyborg accelerator one

Re: [openstack-dev] [Nova] [Cyborg] why cyborg can not support an accelerators info list for more than one host?

2018-03-21 Thread Ed Leafe
On Mar 21, 2018, at 11:35 AM, 少合冯 wrote: > >> By default, hosts are weighed one by one. You can subclass the BaseWeigher >> (in nova/weights.py) to weigh all objects at once. > > Does that means it require call cyborg accelerator one by one? the pseudo > code as follow: > for host in hosts: >

Re: [openstack-dev] [Nova] [Cyborg] why cyborg can not support an accelerators info list for more than one host?

2018-03-21 Thread 少合冯
2018-03-22 0:11 GMT+08:00 Ed Leafe : > On Mar 21, 2018, at 10:56 AM, 少合冯 wrote: > > > > Sorry, I did not attend the PTG. > > Is it said there is a conclusion: > > Scheduler weigher will call into Cyborg REST API for each host instead > of one REST API for all hosts. > > Is there some reason? > >

Re: [openstack-dev] [Nova] [Cyborg] why cyborg can not support an accelerators info list for more than one host?

2018-03-21 Thread Ed Leafe
On Mar 21, 2018, at 10:56 AM, 少合冯 wrote: > > Sorry, I did not attend the PTG. > Is it said there is a conclusion: > Scheduler weigher will call into Cyborg REST API for each host instead of one > REST API for all hosts. > Is there some reason? By default, hosts are weighed one by one. You ca