Skip to content

Commit 5124f0f

Browse files
dilyevskyclaude
andcommitted
[xds] aggressive DNS refresh for faster tunnel endpoint propagation
Lower STRICT_DNS cluster refresh from 30s to 2s, add failure refresh rate (1-2s), and disable RespectDnsTtl so Envoy picks up new tunnel endpoints quickly regardless of DNS TTL. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac33949 commit 5124f0f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/gateway/xds/translator/cluster.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,12 @@ func buildXdsCluster(args *xdsClusterArgs) *clusterv3.Cluster {
142142
}
143143
} else {
144144
cluster.ClusterDiscoveryType = &clusterv3.Cluster_Type{Type: clusterv3.Cluster_STRICT_DNS}
145-
cluster.DnsRefreshRate = durationpb.New(30 * time.Second)
146-
cluster.RespectDnsTtl = true
145+
cluster.DnsRefreshRate = durationpb.New(2 * time.Second)
146+
cluster.DnsFailureRefreshRate = &clusterv3.Cluster_RefreshRate{
147+
BaseInterval: durationpb.New(1 * time.Second),
148+
MaxInterval: durationpb.New(2 * time.Second),
149+
}
150+
cluster.RespectDnsTtl = false
147151
}
148152

149153
// build common, HTTP/1 and HTTP/2 protocol options for cluster

0 commit comments

Comments
 (0)