Merge "Increase 'execution.defaultThreadPoolSize' default and min to 2" into stable-2.16
This commit is contained in:
@@ -4152,7 +4152,8 @@ Default is 256.
|
||||
The default size of the background execution thread pool in
|
||||
which miscellaneous tasks are handled.
|
||||
+
|
||||
Default is 1.
|
||||
Default and minimum is 2 so that a single, potentially longer executing
|
||||
task (e.g. GC), is not blocking the entire execution.
|
||||
|
||||
[[execution.fanOutThreadPoolSize]]execution.fanOutThreadPoolSize::
|
||||
+
|
||||
|
||||
@@ -100,7 +100,7 @@ public class WorkQueue {
|
||||
|
||||
@Inject
|
||||
WorkQueue(IdGenerator idGenerator, @GerritServerConfig Config cfg, MetricMaker metrics) {
|
||||
this(idGenerator, cfg.getInt("execution", "defaultThreadPoolSize", 1), metrics);
|
||||
this(idGenerator, Math.max(cfg.getInt("execution", "defaultThreadPoolSize", 2), 2), metrics);
|
||||
}
|
||||
|
||||
/** Constructor to allow binding the WorkQueue more explicitly in a vhost setup. */
|
||||
|
||||
Reference in New Issue
Block a user