2018-03-22 0:11 GMT+08:00 Ed Leafe <ed at leafe.com>: > On Mar 21, 2018, at 10:56 AM, 少合冯 <lvmxhster at gmail.com> 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 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: accelerator = cyborg.http_get_ accelerator(host) do_weight_by_accelerator Instead of call cyborg accelerators once, the pseudo code as follow : accelerators = cyborg.http_get_ accelerator(hosts) for acc in accelerators: do_weight_by_accelerator -- Ed Leafe > > > > > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180322/b45bfd69/attachment.html>