blob: 9ea51a83bf1bdd3f30447426dc37656992c73fad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// 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.producer.AbstractConfigProducer;
import com.yahoo.vespa.model.container.Container;
import com.yahoo.config.model.api.container.ContainerServiceType;
import com.yahoo.vespa.model.container.component.AccessLogComponent;
/**
* Container that should be running on same host as the logserver. Sets up a handler for getting logs from logserver.
* Only in use in hosted Vespa.
*/
public class LogserverContainer extends Container {
public LogserverContainer(AbstractConfigProducer parent) {
super(parent, "" + 0, 0);
addComponent(new AccessLogComponent(AccessLogComponent.AccessLogType.jsonAccessLog, ((LogserverContainerCluster) parent).getName(), true));
appendJvmOptions("-Xms32m -Xmx512m");
}
@Override
public ContainerServiceType myServiceType() {
return ContainerServiceType.LOGSERVER_CONTAINER;
}
}
|