Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88C434A6F for ; Tue, 31 May 2011 19:25:14 +0000 (UTC) Received: (qmail 23409 invoked by uid 500); 31 May 2011 19:25:11 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 23359 invoked by uid 500); 31 May 2011 19:25:11 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 23351 invoked by uid 99); 31 May 2011 19:25:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 19:25:11 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [162.129.8.141] (HELO ipex1.johnshopkins.edu) (162.129.8.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 19:25:05 +0000 X-IronPort-AV: E=Sophos;i="4.65,299,1304308800"; d="scan'208";a="70400876" Received: from sys02.staff.ad.mse.jhu.edu (HELO [128.220.8.101]) ([128.220.8.101]) by ipex1.johnshopkins.edu with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 31 May 2011 15:24:44 -0400 Message-ID: <4DE5407C.1010209@jhu.edu> Date: Tue, 31 May 2011 15:24:44 -0400 From: Jonathan Rochkind User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: Using multiple CPUs for a single document base? References: <4DE5338B.9050707@jhu.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Yep, that could be it. You certainly don't get _great_ concurrency support 'for free' in Java, concurrent programming is still tricky. Parts of Solr are surely better at it than others. The one place I'd be shocked was just with multiple concurrent queries, if those weren't helped by multi-CPUs. Multi CPUs won't neccesarily speed up any single query, they should just speed up the overall situation under heavy load. Which has been my observation. And it may be that multi-CPU's don't speed up add/commit much, as you possibly have observed. I do all my 'adds' to a seperate Solr index, and then replicate to a slave that actually serves queries. My 'master' that I do my adds to is actually on the very same server -- but I run it in an entirely different java container, in part to minimize any chance that it will end up competing for threads/CPUs with the slave serving queries, the OS level alone should ('should', famous last word) balance it to a different cpu core. (Of course, there's still only so much total CPU avail on the machine). On 5/31/2011 2:53 PM, Jack Repenning wrote: > On May 31, 2011, at 11:29 AM, Jonathan Rochkind wrote: > >> I kind of think you should get multi-CPU use 'for free' as a Java app too. > Ah, probably experimental error? If I apply a stress load consisting only of queries, I get automatic multi-core use as expected. I could see where indexing new dox could tend toward synchronization and uniprocessing. Perhaps my original test load was too add-centric, does that make sense? > > -==- > Jack Repenning > Technologist > Codesion Business Unit > CollabNet, Inc. > 8000 Marina Boulevard, Suite 600 > Brisbane, California 94005 > office: +1 650.228.2562 > twitter: http://twitter.com/jrep > > > > > > > > >