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.rutherg...@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.willna...@googlemail.com> wrote:
>> On Thu, Apr 14, 2011 at 5:20 PM, Jason Rutherglen
>> <jason.rutherg...@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-unsubscr...@lucene.apache.org
>>> For additional commands, e-mail: dev-h...@lucene.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: dev-h...@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>



-- 
Kirill Zakharenko/Кирилл Захаренко
E-Mail/Jabber: ear...@gmail.com
Phone: +7 (495) 683-567-4
ICQ: 104465785

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to