Skip to content

Commit

Permalink
fix: removed computation of number of clusters based on number of CPU…
Browse files Browse the repository at this point in the history
…, issue #10117
  • Loading branch information
tglman committed Feb 15, 2024
1 parent 977c567 commit a1e87ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ public void change(final Object iCurrentValue, final Object iNewValue) {
"class.minimumClusters",
"Minimum clusters to create when a new class is created. 0 means Automatic",
Integer.class,
0),
8),

// LOG
LOG_SUPPORTS_ANSI(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1963,9 +1963,7 @@ private void copy(
private void autoInitClusters() {
if (getContextConfiguration().getValueAsInteger(OGlobalConfiguration.CLASS_MINIMUM_CLUSTERS)
== 0) {
final int cpus = Runtime.getRuntime().availableProcessors();
getContextConfiguration()
.setValue(OGlobalConfiguration.CLASS_MINIMUM_CLUSTERS, Math.min(cpus, 64));
getContextConfiguration().setValue(OGlobalConfiguration.CLASS_MINIMUM_CLUSTERS, 8);
}
}

Expand Down

0 comments on commit a1e87ff

Please sign in to comment.