// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.admin;

import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.container.handler.ThreadpoolConfig;
import com.yahoo.vespa.model.container.ContainerCluster;
import com.yahoo.vespa.model.container.component.Handler;

/**
 * @author hmusum
 */
public class LogserverContainerCluster extends ContainerCluster<LogserverContainer> implements ThreadpoolConfig.Producer {

    public LogserverContainerCluster(AbstractConfigProducer<?> parent, String name, DeployState deployState) {
        super(parent, name, name, deployState);

        addDefaultHandlersWithVip();
        addLogHandler();
    }

    @Override
    protected void doPrepare(DeployState deployState) { }

    @Override
    public void getConfig(ThreadpoolConfig.Builder builder) {
        builder.maxthreads(10);
    }

    protected boolean messageBusEnabled() { return false; }

    private void addLogHandler() {
        Handler<?> logHandler = Handler.fromClassName(ContainerCluster.LOG_HANDLER_CLASS);
        logHandler.addServerBindings("http://*/logs");
        addComponent(logHandler);
    }

}

@@ -310,16 +310,62 @@
 Config;%0A
+import com.yahoo.search.config.QrStartConfig;%0A
 import c
@@ -472,16 +472,43 @@
 ndler;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * @
@@ -1062,24 +1062,173 @@
 10);%0A    %7D%0A%0A
+    @Override%0A    public void getConfig(QrStartConfig.Builder builder) %7B%0A        super.getConfig(builder);%0A        builder.jvm.heapsize(384);%0A    %7D%0A%0A
     protecte

Reduce max heap from 512m to 384m