From: Eric Barton Date: Wed, 31 Dec 2008 15:20:45 +0000 Subject: [Lustre-devel] global epochs v. dependencies Message-ID: <01d001c96b5b$5a595650$0f0c02f0$@com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lustre-devel@lists.lustre.org FYI... any further thoughts on the subject of epochs? i'd appreciate very much if you could describe your concerns about overhead of dependency-based recovery yes indeed preferable in email so that i can look and think again and again sure - it's all about how communications combine I don't like nikita's idea either (reduction of a vector O(#clients) in size) my understanding is that nikita's idea is very simple to understand and implement yes - I agree with almost all of it apart from having to propagate per-client info but as we discussed - that is only required if clients don't participate in a fixed-topology reduction when they do, the info to reduce is O(constant) which means you can afford to reduce it much more frequently if the reduction tree hasn't got too high a branching ratio i still think that having a single coordinator is bad thing and fsync is a problem as well no single coordinator required ? unless you want to call the root of the reduction tree "the coordinator" - but really, it's just the server that knows the global reduction result first and broadcasts it back to the rest of the cluster via the other servers in the tree well, this is a coordinator - single node deciding what epochs are stable by given moment no - it doesn't decide it the reduction is done in the tree the root of the tree is only combining information from its children like any other non-leaf in the tree one part of tree knows nothing abou different part of tree yes, but you can't make epoch N stable until you know another subtree has no N-10 finished indeed every client tells its favourite server (and only its favourite server) its oldest volatile epoch each server sends its parent the oldest volatile epoch computed over itself and its clients and tells its parent the parent computs the oldest volatile epoch over its children and tells its parent etc until the root knows the global oldest volatile epoch the root tells its children the oldest global volatile epoch the children tell their children current epoch can come from different server, not from favorite server. and so on I don't understand your last statement ok, describing .. say, there is mds1 and mds2 client1 has mds1 as a favorite, so client2 does with mds2 client1 has it volatile epoch 20 and reports this to mds1 c1 has oldest volatile epoch 20 and reports to mds1 at same time clent2 has its volatile epoch 10 and reports this to mds2 c1 has _oldest_ volatile epoch 10 and reports to mds2 mds2 reports 10 to mds1 mds1 now knows the oldest volatile epoch is 10 mds1 can't make 20 stable till 10 is stable as well it tells mds2 10 is the oldest volatile opoch md1 tells c1 and mds2 tells c2 now everyone knows 10 is the oldest volatile epoch what's the issue ? the issue is that you need all servers be involved yes - they inevitable all are when you have a large enough cluster and volume of distributed operations that's exactly the point so you need the # of messages and # of bytes in these messages that any individual server sees to be limited otherwise you can't scale if you cannot combine messages, then you are doing an exchange, not a reduction reduction is far more scalable than exchange no, you're telling about some cluster doing *single* job. i'm telling about cluster doing many jobs. in the last case you want to localize operations to some servers I'm neutral about whether the cluster is doing a single job or multiple unrelated jobs both use cases must scale requiring all servers in non-stop exchange makes big cluster very vulnerable to failures how is that different for dependencies? and the bigger cluster, the frequent failures because with dependency all exchange can be limited to servers involved in operations. if /home/eeb lives on (mds1; mds2) and /home/bzzz lives on (mds3; mds4) then failure of mds5 doesnt impact me or you even w/o failures, requiring all servers to interact all the time is not very good - servers can be distributed over the globe especially given most of operations aren't really distributed at all disagree - we discussed yesterday that WAN clients would have to use proxy servers because if they re, then performance will be bad proxy changes nothing, imho think again - a proxy does the global epoch calculation on behalf of the WAN clients you can expect every mds to be involved in a distributed operation with every other mds after enough operations have been performed expect doesn't mean "a lot of distributed operations all the time" proxy doesn global epoch calculation, but it link between proxy and remote part of cluster is broken, you can't make any progress with undo cancel - because they share epoch namespace the proxy server is just a low-latency client which bounds who needs to be involved in the global last volatile epoch calculation my feeling is that we have very different sense of "scale" here: your one is something about zillions of distributed operations over whole cluster all the time, my one is rather a zillions of local domains where working set belongs to if you make each MDS the proxy for the lustre clients (like we do now with having the master MDS do the RPCs to the slave MDSes) then you've limited the global oldest volatile epoch calculation to just the servers yes I agree with your last comment If you can convince me that we can achieve good load balance with a scheme that can exploit locality - i.e. so you have mathematical bounds on the volume of non-local operations as a proportion of the whole - then I will start to believe more in dependencies :) dependency-based recovery would work with any non-heterogenous setups like usual, not requiring any special proxy. and i think it'd scale very well with "working sets" ok - I think we both have stuff to think about now ttyl...