<div>Yes - the use case I'm working towards is to use metadata to specify "openstack:near=volume-000001" when creating a machine, and I will provide a scheduler that will take that information and will assign you a machine e.g. in the same rack as the volume storage.  It's unclear right now whether this metadata approach should be core OpenStack or not, but I figure I'll contribute it and then we can debate exactly where we want to put it.</div>
<div><br>I see this as complementary to Eric's proposal, which also makes sense to me.  Hopefully my code will be re-usable here also (or if Eric commits first, hopefully I can use his!)</div><div><br></div><div>Gabe: Can you give us more details on your use cases?  Would my proposal work for you?  Would Eric's?  Any caveats with either?</div>
<div><br></div><div>Justin<br><br>
<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 3:01 PM, Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com">vishvananda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This seems to overlap heavily with justin's metadata stuff.  The idea was that you could pass in metadata on instance launch saying near: other-object.  I think that is far more useful than an opaque affinity id.<br>
<br>
Vish<br>
<div><div></div><div class="h5"><br>
On Feb 28, 2011, at 2:53 PM, Gabe Westmaas wrote:<br>
<br>
> Hi Eric,<br>
><br>
> I probably chose a poor word there, this is actually referring to something smaller than the multicluster zones that Sandy has been working on.  For example, in case for some performance reasons you wanted two servers with as few network hops as possible.  If that still lines up with what you are talking about, great.<br>

><br>
> Sorry about that!<br>
><br>
> Gabe<br>
><br>
> On Monday, February 28, 2011 4:57pm, "Eric Day" <<a href="mailto:eday@oddments.org">eday@oddments.org</a>> said:<br>
><br>
>> Hi Gabe,<br>
>><br>
>> There has been a lot of discussion about this, along with zone naming,<br>
>> structure, and so forth. I was propsing we not only make it part of<br>
>> Nova, but suggest all projects use the same locality zone names/tags<br>
>> to ensure cross-project locality.<br>
>><br>
>> So, "yes", and don't make it nova-specific. :)<br>
>><br>
>> -Eric<br>
>><br>
>> On Mon, Feb 28, 2011 at 04:48:25PM -0500, Gabe Westmaas wrote:<br>
>>> Hey All,<br>
>>><br>
>>> For various reasons, Rackspace has a need to allow customers to request placement<br>
>>> in the same zone as another server.  I am trying to figure out if this is<br>
>>> generically useful, or something that should be outside of core.  The idea is<br>
>>> that if you don't specify an affinity ID one will get returned to you when you<br>
>>> create the server, and you can use that ID to add additional servers in close<br>
>>> proximity to the first.<br>
>>><br>
>>> What do you think?  Is this useful enough outside Rackspace to be in core?<br>
>>> Alternatively, we can write it as an extension so as not to clutter core.<br>
>>><br>
>>> Gabe<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>>> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
>>> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br></div>