Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF9E577A0 for ; Wed, 9 Nov 2011 19:24:54 +0000 (UTC) Received: (qmail 68610 invoked by uid 500); 9 Nov 2011 19:24:54 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 68549 invoked by uid 500); 9 Nov 2011 19:24:54 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 68541 invoked by uid 99); 9 Nov 2011 19:24:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 19:24:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gorankent@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 19:24:49 +0000 Received: by vcbfl17 with SMTP id fl17so1767012vcb.6 for ; Wed, 09 Nov 2011 11:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=WXNRfxhKUUz/mrgKC2kKMb8Jvvw1sypP5Skv2LxCdFQ=; b=DEP2zR0UfSYGVzBNrGvnw8T8GWr79YlzNtArZ2sumUPBy+SiWpzHeCaO5hiUr7RL2D jLUrD5FJz2fuqkqPkQw0kTX5q+SwH/TsNyx2GYIJby54Ulu96j3eV38F/u/3bYcvOnsT LubMADRxffc/++dVJtPrbP17AKeQxwtcOMBAg= MIME-Version: 1.0 Received: by 10.52.16.243 with SMTP id j19mr6759175vdd.109.1320866668688; Wed, 09 Nov 2011 11:24:28 -0800 (PST) Received: by 10.52.188.10 with HTTP; Wed, 9 Nov 2011 11:24:28 -0800 (PST) In-Reply-To: <20111109184153.GA8863@rectangular.com> References: <20111109184153.GA8863@rectangular.com> Date: Wed, 9 Nov 2011 21:24:28 +0200 Message-ID: From: goran kent To: lucy-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [lucy-user] LucyX::Remote::SearchServer concurrency On Wed, Nov 9, 2011 at 8:41 PM, Marvin Humphrey wr= ote: >> Correct me if I'm miss-reading >> the code, but doesn't that mean that serve() will block until it >> finishes the current search =A0-- =A0ie, no concurrent searches? > > Yes. > > FWIW, Searchers are cheap, because we rely heavily on the OS cache rather= than > dump stuff into process RAM. =A0That aids with multi-process concurrency, > because adding another worker is inexpensive. ok, what's the recommended route to facilitate concurrent searches on a remote search server? Rewrite LucyX/Remote/SearchServer.pm to fork off a worker process for each new connection? Right now off the top of my head I can't think of a way to wrap LucyX/Remote/SearchServer.pm to achieve this.