<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>In blueprint [1], we approved to allow set weights multiplier on host aggregates to have more flexibility when scheduling.</div><div><br></div><div>In order to make weigher can get the metadata info, we propose to add a new parameter "host_state" in weight_multiplier method [2],</div><div>just like what we current do in filter host_passes [3].</div><div><br></div><div>That means if you implements the custom weigher, you should change your weigher to accept a host_state.</div><div><br></div><div>Any thoughts or feedback are welcome, thanks! : )</div><div><div><br></div><div>[1] <a href="https://blueprints.launchpad.net/nova/+spec/per-aggregate-scheduling-weight">https://blueprints.launchpad.net/nova/+spec/per-aggregate-scheduling-weight</a></div><div>[2] <a href="https://review.openstack.org/#/c/628163/12/nova/weights.py@79">https://review.openstack.org/#/c/628163/12/nova/weights.py@79</a></div><div>[3] <a href="https://github.com/openstack/nova/blob/master/nova/scheduler/filters/__init__.py#L46">https://github.com/openstack/nova/blob/master/nova/scheduler/filters/__init__.py#L46</a></div></div><div><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Regards,</div><div>Yikun</div><div><font color="#666666">----------------------------------------</font></div><div><font color="#666666">Jiang Yikun(</font><span style="color:rgb(102,102,102)">Kero)</span></div><div><font color="#666666">Mail: <a href="mailto:yikunkero@gmail.com" target="_blank">yikunkero@gmail.com</a></font></div></div></div></div></div></div></div></div>