Merge "Change how default value of sshd.threads is computed"
This commit is contained in:
@@ -3430,7 +3430,7 @@ Number of threads to use when executing SSH command requests.
|
||||
If additional requests are received while all threads are busy they
|
||||
are queued and serviced in a first-come-first-served order.
|
||||
+
|
||||
By default, 1.5x the number of CPUs available to the JVM.
|
||||
By default, 2x the number of CPUs available to the JVM.
|
||||
|
||||
[[sshd.batchThreads]]sshd.batchThreads::
|
||||
+
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ThreadSettingsConfig {
|
||||
@Inject
|
||||
ThreadSettingsConfig(@GerritServerConfig Config cfg) {
|
||||
int cores = Runtime.getRuntime().availableProcessors();
|
||||
sshdThreads = cfg.getInt("sshd", "threads", 3 * cores / 2);
|
||||
sshdThreads = cfg.getInt("sshd", "threads", 2 * cores);
|
||||
httpdMaxThreads = cfg.getInt("httpd", "maxThreads", 25);
|
||||
int defaultDatabasePoolLimit = sshdThreads + httpdMaxThreads + 2;
|
||||
databasePoolLimit =
|
||||
|
||||
Reference in New Issue
Block a user