lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Earwin Burrfoot <ear...@gmail.com>
Subject Re: Setting the max number of merge threads across IndexWriters
Date Thu, 14 Apr 2011 15:52:33 GMT
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.

On Thu, Apr 14, 2011 at 19:40, Jason Rutherglen
<jason.rutherglen@gmail.com> wrote:
> I think the proposal involved using a ThreadPoolExecutor, which seemed
> to not quite work as well as what we have.  I think it'll be easier 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
> <simon.willnauer@googlemail.com> wrote:
>> On Thu, Apr 14, 2011 at 5:20 PM, Jason Rutherglen
>> <jason.rutherglen@gmail.com> 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/Кирилл Захаренко
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


Mime
View raw message