diff options
author | Harald Musum <musum@yahooinc.com> | 2023-05-08 10:35:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 10:35:07 +0200 |
commit | 5685f5e49b719526c930d35ffaf2d7f945b552a0 (patch) | |
tree | cce00a3bebb2ae78db8ad8101513f5999f0814c9 /config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java | |
parent | 5f3d9b2a6a3b1c58a8a295189208c4be262e60d2 (diff) |
Revert "Remove access logging for internal container clusters"
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java index 14b18cd8711..7b465e3eb48 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java @@ -8,6 +8,7 @@ import com.yahoo.config.provision.ClusterSpec; import com.yahoo.search.config.QrStartConfig; import com.yahoo.vespa.model.container.ContainerCluster; import com.yahoo.vespa.model.container.PlatformBundles; +import com.yahoo.vespa.model.container.component.AccessLogComponent; import java.nio.file.Path; import java.util.Collections; @@ -33,7 +34,11 @@ public class ClusterControllerContainerCluster extends ContainerCluster<ClusterC this.reindexingContext = createReindexingContext(deployState); setJvmGCOptions(deployState.getProperties().jvmGCOptions(Optional.of(ClusterSpec.Type.admin))); if (isHostedVespa()) - addAccessLog("controller"); + addComponent(new AccessLogComponent(this, + AccessLogComponent.AccessLogType.jsonAccessLog, + deployState.featureFlags().logFileCompressionAlgorithm("zstd"), + Optional.of("controller"), + isHostedVespa())); } @Override |