Prepare for Vespa 8
@@ -436,9 +436,14 @@ public class ContainerModelBuilder extends ConfigModelBuilder<ContainerModel> {
// Add connection log if access log is configured
if (cluster.getAllComponents().stream().anyMatch(component -> component instanceof AccessLogComponent)) {
+ // TODO: clean up after Vespa 8
+ if (cluster.isHostedVespa() || deployState.getVespaVersion().getMajor() == 8) {
+ cluster.addComponent(new ConnectionLogComponent(cluster, FileConnectionLog.class, "access"));
+ } else {
cluster.addComponent(new ConnectionLogComponent(cluster, FileConnectionLog.class, "qrs"));
}
}
+ }
private List<Element> getAccessLogElements(Element spec) {
return XML.getChildren(spec, "accesslog");
