lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Re: Setting the max number of merge threads across IndexWriters
Date Thu, 14 Apr 2011 15:40:38 GMT
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


Mime
View raw message