Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 41083 invoked from network); 14 Apr 2011 17:23:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 17:23:54 -0000 Received: (qmail 67795 invoked by uid 500); 14 Apr 2011 17:23:53 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 67740 invoked by uid 500); 14 Apr 2011 17:23:53 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 67733 invoked by uid 99); 14 Apr 2011 17:23:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 17:23:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of earwin@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 17:23:48 +0000 Received: by qyk30 with SMTP id 30so1535273qyk.14 for ; Thu, 14 Apr 2011 10:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=m0RyPKjYYHN8Y+VRsmnPmTezCv4lrzc4hCtHXFNwyzc=; b=iUJGbRY3YELAo7lJoNl7KWkvQnj6lA4sH1RuGOujg5eDh8098CfDf+leBLa4RSOuIM eXrVJqubZfVoXkyKGlrEk/7RrfZiDscMD9fSGdfIlmMaiGZnc3sgB1SRU0JhkQiN2Mbe HcooOyWp+1J6iWWGSZblM+WoXzSDIMATWL+Dk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=liUenmQF3QilFhXXvuMlTfQHs23HORT1cmmlYyZ8wBjgxFEQcjpJMUjEp2Yl1YRRc1 GL52k9GRRN7qhtuvx9IjA6+Qt2Ixx5/MzHK2vDhZF7+LANQOyVzlGruwMTiEPxAoJcCa MHLyULR2t+RR7Obh/7hYwyc//gQpxhCUssoN8= MIME-Version: 1.0 Received: by 10.229.26.203 with SMTP id f11mr786106qcc.16.1302801807086; Thu, 14 Apr 2011 10:23:27 -0700 (PDT) Received: by 10.229.95.75 with HTTP; Thu, 14 Apr 2011 10:23:26 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Apr 2011 21:23:26 +0400 Message-ID: Subject: Re: Setting the max number of merge threads across IndexWriters From: Earwin Burrfoot To: dev@lucene.apache.org, simon.willnauer@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Can't remember. Probably no. I started an experimental MS api rewrite (incorporating ability to share MSs between IWs) some time ago, but never had the time to finish it. On Thu, Apr 14, 2011 at 19:56, Simon Willnauer wrote: > On Thu, Apr 14, 2011 at 5:52 PM, Earwin Burrfoot wrote= : >> I proposed to decouple MergeScheduler from IW (stop keeping a >> reference to it). Then you can create a single CMS and pass it to all >> your IWs. > Yep that was it... is there an issue for this? > > simon >> >> On Thu, Apr 14, 2011 at 19:40, Jason Rutherglen >> wrote: >>> I think the proposal involved using a ThreadPoolExecutor, which seemed >>> to not quite work as well as what we have. =C2=A0I think it'll be easie= r to >>> simply pass a global context that keeps a counter of the actively >>> running threads, and pass that into each IW's CMS? >>> >>> On Thu, Apr 14, 2011 at 8:25 AM, Simon Willnauer >>> wrote: >>>> On Thu, Apr 14, 2011 at 5:20 PM, Jason Rutherglen >>>> wrote: >>>>> Today the ConcurrentMergeScheduler allows setting the max thread >>>>> count and is bound to a single IndexWriter. >>>>> >>>>> However in the [common] case of multiple IndexWriters running in >>>>> the same process, this disallows one from managing the aggregate >>>>> number of merge threads executing at any given time. >>>>> >>>>> I think this can be fixed, shall I open an issue? >>>> >>>> go ahead! I think I have seen this suggestion somewhere maybe you need >>>> to see if there is one already >>>> >>>> simon >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org >>>>> For additional commands, e-mail: dev-help@lucene.apache.org >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org >>>> For additional commands, e-mail: dev-help@lucene.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: dev-help@lucene.apache.org >>> >>> >> >> >> >> -- >> Kirill Zakharenko/=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB =D0=97=D0=B0=D1= =85=D0=B0=D1=80=D0=B5=D0=BD=D0=BA=D0=BE >> E-Mail/Jabber: earwin@gmail.com >> Phone: +7 (495) 683-567-4 >> ICQ: 104465785 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: dev-help@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --=20 Kirill Zakharenko/=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB =D0=97=D0=B0=D1=85= =D0=B0=D1=80=D0=B5=D0=BD=D0=BA=D0=BE E-Mail/Jabber: earwin@gmail.com Phone: +7 (495) 683-567-4 ICQ: 104465785 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org