aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorbjormel <bjormel@verizonmedia.com>2022-05-11 16:34:33 +0200
committerbjormel <bjormel@verizonmedia.com>2022-05-11 16:34:33 +0200
commite6dfc673275cd8c5515196aa52e6d771121787c3 (patch)
tree0db28f9faf09e1be31f9b3876f0ea20ddeec46b8 /config-model
parent45dedaa74cde1a9b29da723fe8fe7d2182a79fd1 (diff)
Hosted: Do not use clusterId as part of filename for ConnectionLog
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/component/ConnectionLogComponent.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/component/ConnectionLogComponent.java b/config-model/src/main/java/com/yahoo/vespa/model/container/component/ConnectionLogComponent.java
index 07a48e94399..0c65aee798b 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/component/ConnectionLogComponent.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/component/ConnectionLogComponent.java
@@ -10,21 +10,26 @@ public class ConnectionLogComponent extends SimpleComponent implements Connectio
private final String logDirectoryName;
private final String clusterName;
+ private final boolean isHostedVespa;
public ConnectionLogComponent(ContainerCluster<?> cluster, Class<? extends ConnectionLog> cls, String logDirectoryName) {
- this(cls, logDirectoryName, cluster.getName());
+ this(cls, logDirectoryName, cluster.getName(), cluster.isHostedVespa());
}
- public ConnectionLogComponent(Class<? extends ConnectionLog> cls, String logDirectoryName, String clusterName) {
+ public ConnectionLogComponent(Class<? extends ConnectionLog> cls, String logDirectoryName, String clusterName, boolean isHostedVespa) {
super(cls.getName());
this.logDirectoryName = logDirectoryName;
this.clusterName = clusterName;
+ this.isHostedVespa = isHostedVespa;
}
@Override
public void getConfig(ConnectionLogConfig.Builder builder) {
builder.cluster(clusterName);
builder.logDirectoryName(logDirectoryName);
+ if (isHostedVespa) {
+ builder.useClusterIdInFileName(false);
+ }
builder.queueSize(-1);
}
}