From: Anthony Liguori <aliguori@us.ibm.com>
To: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>,
Rusty Russell <rusty@rustcorp.com.au>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [RFC] Switching store to use domain id's for keys
Date: Wed, 31 Aug 2005 15:40:30 -0500 [thread overview]
Message-ID: <431615BE.5040203@us.ibm.com> (raw)
In-Reply-To: <20050831092846.GX24659@cl.cam.ac.uk>
Christian Limpach wrote:
>>The reasoning seems obvious to me, there's no easy way to get the UUID
>>for a domain so constructing a UUID based path outside of Xend is very
>>difficult.
>>
>>
>
>Hmm, it's less than 40 lines of C code to iterate over the /domain entries
>and find a domain with a matching name or id. It would be convenient
>to have library functions which does this...
>
>
The linear search just makes me sad :-) There can still be a UUID key
within the /domain tree. One can just as easily code up a function to
resolve UUIDs to domain IDs by doing a linear search.
I think the key is to optimize for the common case here. Since, today
and I reckon for the foreseeable future, the management functions take
domain IDs, it seems like the right thing to optimize for.
>We'd like the identifier for a domain to remain the same after
>relocating the domain to a different physical machine.[1]
>
>
Yes, this is a tough thing to get right. It straight forward for
migration, but what about save/restore, cloning, etc. It seems almost
better to let UUIDs preservation to be a higher level management task.
>If we consider changing this, I'd go for /domain/<nodeid>-<domid>. It
>would make it easy to find the path for a domain on its home node but
>it wouldn't work anymore once you move the domain to a new host.
>
>
I'm partial to a more hierarchical model. Something like
<nodeid>/domain/<domid>. It lets <nodeid> become part of an implicit
path...
Regards,
Anthony Liguori
>>Or, if we really want to use UUIDs in the node path, perhaps we can add
>>UUIDs to the domain structure in the hypervisor so that we can actually
>>query it through getdomaininfo?
>>
>>
>
>We've considered this but everytime we've found that the reason why
>we wanted it was invalid.
>
>In any case, it seems reasonable to move the console entries to the
>domain tree then...
>
> christian
>
>[1] this is currently broken since we create a new uuid on restore.
>The issue is that device configuration is local to the host where the
>domain is running and there's a short period of time where we want
>device information for two hosts present at the same time.
>
>
>
>
next prev parent reply other threads:[~2005-08-31 20:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 20:32 [RFC] Switching store to use domain id's for keys Anthony Liguori
2005-08-31 9:28 ` Christian Limpach
2005-08-31 20:40 ` Anthony Liguori [this message]
2005-09-05 0:11 ` Rusty Russell
2005-09-05 0:26 ` Steven Hand
2005-09-05 1:05 ` Rusty Russell
2005-09-05 1:43 ` Steven Hand
2005-09-05 2:53 ` Rusty Russell
2005-09-05 8:35 ` Steven Hand
2005-09-05 8:52 ` Keir Fraser
2005-09-06 0:07 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=431615BE.5040203@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=rusty@rustcorp.com.au \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.