WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [RFC] Switching store to use domain id's for keys

To: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: [RFC] Switching store to use domain id's for keys
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: Mon, 05 Sep 2005 10:11:20 +1000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 05 Sep 2005 00:09:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050831092846.GX24659@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4314C26E.9020408@xxxxxxxxxx> <20050831092846.GX24659@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2005-08-31 at 10:28 +0100, Christian Limpach wrote:
> On Tue, Aug 30, 2005 at 03:32:46PM -0500, Anthony Liguori wrote:
> > Perhaps now is a good time to reconsider just using domain ids instead 
> > of UUIDs for the paths?  In a cluster we could just use 
> > <nodeid>/domain/<domid> for unique identification.
> 
> We'd like the identifier for a domain to remain the same after
> relocating the domain to a different physical machine.[1]

You're never going to have the property that a uuid always maps to the
same domain, or a domain always has the same uuid, if we ever introduce
forking of domains by any method.  So, I think this is a losing battle,
but it's causing a mess of the store as a side effect.

As far as I can tell, UUIDs are a third identifier of domains, which buy
nothing over the existing two: names (cluster-wide unique, human
readable, slow), and domids (locally unique, fast).

> 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.

That only makes sense if a single store is shared across the entire
cluster.  Otherwise the <node-id> is completely redundant, since it will
be the same for all visible domains.

A better solution might be to federate at the top level, so it would be
"/<nodeid>/domain..." in a cluster environment.  Then such a federated
store does not need to effect today's plans.

Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel