remove service config from traffic controller grpc config to reduce dns requests
package app
import (
- "code.cloudfoundry.org/tlsconfig"
"crypto/tls"
"fmt"
"log"
@@ -11,6 +10,8 @@ import (
"os/signal"
"time"
+ "code.cloudfoundry.org/tlsconfig"
+
logcache "code.cloudfoundry.org/log-cache/pkg/client"
"code.cloudfoundry.org/loggregator/metricemitter"
"code.cloudfoundry.org/loggregator/plumbing"
@@ -89,7 +90,13 @@ func (t *TrafficController) Start() {
Timeout: 20 * time.Second,
PermitWithoutStream: true,
}
- pool := plumbing.NewPool(20, grpc.WithTransportCredentials(creds), grpc.WithKeepaliveParams(kp))
+
+ pool := plumbing.NewPool(
+ 20,
+ grpc.WithTransportCredentials(creds),
+ grpc.WithKeepaliveParams(kp),
+ grpc.WithDisableServiceConfig(),
+ )
grpcConnector := plumbing.NewGRPCConnector(1000, pool, f, t.metricClient)
var logCacheClient proxy.LogCacheClient
