@Override
    public void getConfig(ThreadpoolConfig.Builder builder) {
        if (cluster instanceof ApplicationContainerCluster) {
            // Core pool size of 2xcores, and max of 100xcores and using a synchronous Q
            // This is the default pool used by both federation and generally when you ask for an Executor.
            builder.corePoolSize(-2).maxthreads(-100).queueSize(0);
        } else {
            // Container clusters such as logserver, metricsproxy and clustercontroller
            builder.corePoolSize(defaultWorkerThreads).maxthreads(defaultWorkerThreads).queueSize(50);
        }
    }
Component definition for the jdisc default threadpool provider ({@link ThreadPoolProvider}).

@author bjorncs
config-model/src/main/java/com/yahoo/vespa/model/container/DefaultThreadpoolProvider.java