Skip to content

Commit

Permalink
Increase max number of threads threshold
Browse files Browse the repository at this point in the history
This commit increases the lower bound of the max processes ulimit, to
prepare for a world where Elasticsearch instances might be running with
more the previous cap of 32 processors. With the current settings,
Elasticsearch wants to create roughly 576 + 25 * p / 2 threads, where p
is the number of processors. Add in roughly 7 * p / 8 threads for the GC
threads and a fudge factor, and 4096 should cover us pretty well up to
256 cores.
  • Loading branch information
jasontedor committed Oct 11, 2016
1 parent e659a2b commit da92de7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ boolean isMemoryLocked() {

static class MaxNumberOfThreadsCheck implements Check {

private final long maxNumberOfThreadsThreshold = 1 << 11;
// this should be plenty for machines up to 256 cores
private final long maxNumberOfThreadsThreshold = 1 << 12;

@Override
public boolean check() {
Expand Down

0 comments on commit da92de7

Please sign in to comment.