lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Re: [lucy-user] lucy-dev and 0.3.0
Date Tue, 22 Nov 2011 20:33:03 GMT
On Tue, Nov 22, 2011 at 09:25:48PM +0200, goran kent wrote:
> My radar picked up some chatter from the dev list (to which I'm not
> subscribed, so sorry for the cross-post):
> > perhaps we can disable the select loop and just go with serial collection of responses
-- the remotes still work in parallel that way.
> I'm curious about the apparent dichotomy in the above:  serial
> collection <--> remote parallel?

PolySearcher model: 

    for my $remote (@remote_nodes) {
        $poly_searcher->send_request($remote, $request);

ClusterSearcher model:

    for my $remote (@remote_nodes) {
        $cluster_searcher->send_request($remote, $request);
    for my $remote (@remote_nodes) {

In the PolySearcher model, we wait for a response from each remote node before
even sending the request to the next remote node; under ClusterSearcher we
fire off all requests, then gather all responses.  It's far from perfect, but
it's better than before and at least it wouldn't be crashing outright the way
the select loop is for you at the moment.

Marvin Humphrey

View raw message