3262 allow up to 8 threads to be used for ingest

This commit is contained in:
William Schaefer
2017-12-11 12:55:39 -05:00
parent 91c48b7e72
commit 3a292fa181
@@ -37,8 +37,10 @@ final class IngestSettingsPanel extends IngestModuleGlobalSettingsPanel {
int availableProcessors = Runtime.getRuntime().availableProcessors();
Integer fileIngestThreadCountChoices[];
int recommendedFileIngestThreadCount;
if (availableProcessors >= 6) {
if (availableProcessors >= 8) {
fileIngestThreadCountChoices = new Integer[]{1, 2, 4, 6, 8};
recommendedFileIngestThreadCount = 4;
} else if (availableProcessors >= 6 && availableProcessors <= 7) {
fileIngestThreadCountChoices = new Integer[]{1, 2, 4, 6};
recommendedFileIngestThreadCount = 4;
} else if (availableProcessors >= 4 && availableProcessors <= 5) {