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: Introduced an AtomicInteger to track active IndexWriter instances dynamically. 2) Dynamic Thread Allocation: Adjusted maxThreadCount based on the number of active writers to optimize merge performance. 3) Adaptive Merge Throttling: Distributed merge speed limits among active writers to prevent resource contention and ensure fair indexing performance. These changes improve efficiency in multi-writer environments by dynamically adapting merge scheduling to system load. Fixes #13883 -- 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 specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org