Merge "Enable sshd.batchThreads by default"
This commit is contained in:
commit
b3097a3ac6
@ -3427,7 +3427,7 @@ If the number of threads requested for non-interactive users is larger
|
||||
than the total number of threads allocated in sshd.threads, then the
|
||||
value of sshd.threads is increased to accommodate the requested value.
|
||||
+
|
||||
By default, 0.
|
||||
By default is 1 on single core node, 2 otherwise.
|
||||
|
||||
[[sshd.streamThreads]]sshd.streamThreads::
|
||||
+
|
||||
|
@ -35,7 +35,7 @@ public class CommandExecutorQueueProvider implements QueueProvider {
|
||||
final WorkQueue queues) {
|
||||
final int cores = Runtime.getRuntime().availableProcessors();
|
||||
poolSize = config.getInt("sshd", "threads", 3 * cores / 2);
|
||||
batchThreads = config.getInt("sshd", "batchThreads", 0);
|
||||
batchThreads = config.getInt("sshd", "batchThreads", cores == 1 ? 1 : 2);
|
||||
if (batchThreads > poolSize) {
|
||||
poolSize += batchThreads;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user