diff options
author | Bjørn Meland <bjormel@users.noreply.github.com> | 2022-05-12 13:58:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 13:58:31 +0200 |
commit | cc26e57914df77549f439730bde10b2a908eddfb (patch) | |
tree | a8c35015e8030957b1e7ae1fbe1859b2a89d9ae0 /config-model | |
parent | 0b23522f1bb461307d6b6fb25c3eaaff2f361698 (diff) | |
parent | e6dfc673275cd8c5515196aa52e6d771121787c3 (diff) |
Merge pull request #22552 from vespa-engine/bjormel/hosted-connection-log-without-container-name
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.java | 9 |
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); } } |