[Planetlab-devel] Re: [PL #17324] wildcards in slices

Mark Huang mlhuang at CS.Princeton.EDU
Tue Nov 14 15:26:57 EST 2006


Thierry Parmentelat wrote:
> up to you, but db hack or not, somehow a peer calling GetSlices() has to 
> be able to tell that the two returned slices in question are special. 
> Maybe the fact that the returned node_ids is the empty list is enough, 
> in fact. Let's just be aware of the various dependencies.

Again, I don't see that a peer will ever call GetSlices(). A peer will always 
call GetSlivers(its_nodes), and GetSlivers() will know not to return system 
slices to peers.

> Well, GetSlivers essentially performs a cartesian product of nodes and 
> slices; so once you've cached nodes and slices - which is what 
> RefreshPeer is about right now - you're about done; I've never used 
> GetSlivers yet but if it's working on an unfederated plc, I dont expect 
> to have to change anything to it, in much the same way as 
> AddSliceToNodes is essentially intact. At least, that was my understanding.

The idea was that GetSlivers() would be used by both the Node Manager and 
federated peers, to get slice information. I assumed that RefreshPeer() was a 
function that plc1 called on itself after calling plc2.GetNodes() and 
plc2.GetSlivers().

--Mark



More information about the Devel mailing list