<div dir="ltr">Got it with thanks.<div><br></div><div>Best regards,</div><div>Yipei</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 6, 2016 at 9:48 AM, joehuang <span dir="ltr"><<a href="mailto:joehuang@huawei.com" target="_blank">joehuang@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Yipei,<br>
<br>
Shinobu is correct, this should be taken into consideration in the design of dynamic pod binding.<br>
<br>
How to schedule pod, you can refer to host-aggregate scheduling with flavor, the difference is that the scheduling granularity is on pod level. By the tag in flavor extra-spec and volume type extrac_spec , tricircle can be aware of which type of resource the tenant wants to provision.<br>
<br>
For example: <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/Configuration_Reference_Guide/host-aggregates.html" rel="noreferrer" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/4/html/Configuration_Reference_Guide/host-aggregates.html</a><br>
<br>
So in <a href="https://docs.google.com/document/d/18kZZ1snMOCD9IQvUKI5NVDzSASpw-QKj7l2zNqMEd3g/edit" rel="noreferrer" target="_blank">https://docs.google.com/document/d/18kZZ1snMOCD9IQvUKI5NVDzSASpw-QKj7l2zNqMEd3g/edit</a>, one field called resource_affinity_tag is proposed to be added into the pod table, it could be used for scheduling purpose. But this is only one proposal, you may have better idea to do that, after the spec is reviewed and approved, the doc can be update to reflect the new idea.<br>
<br>
Best Regards<br>
Chaoyi Huang ( Joe Huang )<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: Shinobu Kinjo [mailto:<a href="mailto:shinobu.kj@gmail.com">shinobu.kj@gmail.com</a>]<br>
Sent: Friday, May 06, 2016 8:06 AM<br>
To: Yipei Niu<br>
Cc: OpenStack Development Mailing List (not for usage questions); joehuang; Zhiyuan Cai; 金城 忍<br>
Subject: Re: [tricircle] About the dynamic pod binding<br>
<br>
Hi Yipei,<br>
<br>
On Thu, May 5, 2016 at 9:54 PM, Yipei Niu <<a href="mailto:newypei@gmail.com">newypei@gmail.com</a>> wrote:<br>
> Hi, all,<br>
><br>
> For dynamic pod binding, I have some questions.<br>
><br>
[snip]<br>
> 3. How is Tricircle aware of what type of resource wanted by tenants?<br>
> For example, a tenant wants to boot VMs for CAD modelling with<br>
> corresponding flavor. But in current code, the flavorRef is not get<br>
> involved in function get_pod_by_az_tenant, when querying pod bindings.<br>
> So do we need to modify the pod binding table to add such a column?<br>
<br>
Working through code bases, probably you are talking about future implementation, I guess.<br>
<br>
Cheers,<br>
Shinobu<br>
<br>
><br>
> Best regards,<br>
> Yipei<br>
<br>
<br>
<br>
--<br>
Email:<br>
<a href="mailto:shinobu@linux.com">shinobu@linux.com</a><br>
<a href="mailto:shinobu@redhat.com">shinobu@redhat.com</a><br>
</div></div></blockquote></div><br></div>