From 31e292cf22427d9f3d7cc5bd73b6a288e40785fc Mon Sep 17 00:00:00 2001 From: "nastassia.dailidava" Date: Sat, 20 Apr 2024 11:49:45 +0200 Subject: [PATCH] #624 Set flat priority only for services with traffic splitting (add log) --- .../envoycontrol/snapshot/EnvoySnapshotFactory.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt index c56165dad..6cecdd8ef 100644 --- a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt +++ b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt @@ -229,6 +229,12 @@ class EnvoySnapshotFactory( ?.any { e -> trafficSplitting.zoneName == e.locality.zone } ?: false return if (weights != null && enabledForDependency) { + if(serviceName == "varnish") { + logger.info( + "Building traffic splitting route spec, weights: $weights, " + + "serviceName: $serviceName, clusterName: $clusterName, " + ) + } logger.debug( "Building traffic splitting route spec, weights: $weights, " + "serviceName: $serviceName, clusterName: $clusterName, "