Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-04-02 Thread via GitHub
github-actions[bot] commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2774035527 This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the d...@lucene.apache.org list. Thank you for your contributi

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-19 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2735879968 Thankyou for your help @vigyasharma ! I would love to explore small and more focused issues to start with ! -- This is an automated message from the Apache Git Service. To respo

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-18 Thread via GitHub
vigyasharma commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r2000345662 ## lucene/core/src/test/org/apache/lucene/index/TestMultiTenantMergeScheduler.java: ## @@ -0,0 +1,73 @@ +package org.apache.lucene.index; + +import org.apache.luce

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-18 Thread via GitHub
vigyasharma commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r2001826532 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,70 @@ +package org.apache.lucene.index; + +import java.util.concurren

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
mccullocht commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1999677796 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,72 @@ +package org.apache.lucene.index; + +import java.util.concurrent

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2729358357 I have a request to you. Kindly ignore the following two deleted files in the "Files Changed" section : "KeepOnlyLastCommitDeletionPolicy.java" "ConcurrentMergeScheduler.java"

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998648834 ## lucene/core/src/test/org/apache/lucene/index/TestMultiTenantMergeScheduler.java: ## @@ -0,0 +1,30 @@ +package org.apache.lucene.index; + +import org.apache.luc

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998646829 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,44 @@ +package org.apache.lucene.index; + +import java.util.concurre

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998645593 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,44 @@ +package org.apache.lucene.index; + +import java.util.concurre

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998646386 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,44 @@ +package org.apache.lucene.index; + +import java.util.concurre

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
DivyanshIITB commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998645110 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,44 @@ +package org.apache.lucene.index; + +import java.util.concurre

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-17 Thread via GitHub
vigyasharma commented on code in PR #14335: URL: https://github.com/apache/lucene/pull/14335#discussion_r1998041333 ## lucene/core/src/java/org/apache/lucene/index/MultiTenantMergeScheduler.java: ## @@ -0,0 +1,44 @@ +package org.apache.lucene.index; + +import java.util.concurren

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-15 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2727212266 Thanks for your feedback, @jpountz! I have created a new MultiTenantMergeScheduler as suggested, instead of modifying ConcurrentMergeScheduler. I have restored ConcurrentMe

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-15 Thread via GitHub
jpountz commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2727001008 I think it'll be simpler to create a new merge scheduler rather than modify ConcurrentMergeScheduler. Also we'll need tests. -- This is an automated message from the Apache Git Service

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-15 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2726271504 Thanks for the detailed clarification, @jpountz! I have made the necessary changes to the implementation: - Implemented a shared global thread pool with a fixed size of

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-14 Thread via GitHub
jpountz commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2724923272 Apologies I had missed your reply. > should this be a shared global pool across all IndexWriters, or should each writer have its own pool? It should be shared, we don't want

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-14 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2724394013 Just a gentle reminder -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specif

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-11 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2710583795 Thank you for the review, @jpountz! I see your concern regarding equal resource distribution across IndexWriter instances potentially leading to inefficiencies when some write

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-11 Thread via GitHub
DivyanshIITB commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2715055808 Thank you for the clarification, @jpountz! I'll drop the merge throttling aspect from the changes since it's disabled by default. Regarding the fixed thread pool approach (

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-11 Thread via GitHub
jpountz commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2714988316 Merge throttling is now disabled by default, IMO it's fine to ignore merge throttling for now. Regarding thread creation, I'm thinking of a shared fixed (e.g. number of processors / 2) t

Re: [PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-07 Thread via GitHub
jpountz commented on PR #14335: URL: https://github.com/apache/lucene/pull/14335#issuecomment-2708071909 This looks too naive to me, we don't want each index writer to have 1/N of the resources, which would prevent one writer from maxing out resources (e.g. if one index has a heavy write lo

[PR] Optimize ConcurrentMergeScheduler for Multi-Tenant Indexing [lucene]

2025-03-07 Thread via GitHub
DivyanshIITB opened a new pull request, #14335: URL: https://github.com/apache/lucene/pull/14335 This PR enhances the ConcurrentMergeScheduler by introducing dynamic resource allocation for multi-tenant indexing scenarios. Key Improvements: 1) Global Counter for Active IndexWriters