mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
Index Merge: Change default index.merge.scheduler.max_thread_count
from ` to be adaptive based on processor count, closes #469.
This commit is contained in:
parent
2cdaf6357b
commit
3fe2851dae
@ -42,7 +42,7 @@ public class ConcurrentMergeSchedulerProvider extends AbstractIndexShardComponen
|
|||||||
super(shardId, indexSettings);
|
super(shardId, indexSettings);
|
||||||
|
|
||||||
// TODO LUCENE MONITOR this will change in Lucene 4.0
|
// TODO LUCENE MONITOR this will change in Lucene 4.0
|
||||||
this.maxThreadCount = componentSettings.getAsInt("max_thread_count", 1);
|
this.maxThreadCount = componentSettings.getAsInt("max_thread_count", Math.max(1, Math.min(3, Runtime.getRuntime().availableProcessors() / 2)));
|
||||||
logger.debug("using [concurrent] merge scheduler with max_thread_count[{}]", maxThreadCount);
|
logger.debug("using [concurrent] merge scheduler with max_thread_count[{}]", maxThreadCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user