From d9bfde298d61e033166f51318d901d606e09af45 Mon Sep 17 00:00:00 2001 From: Weiran Fang Date: Thu, 15 Oct 2020 16:59:26 +0000 Subject: [PATCH] Add comment for DP attempt --- .../bigtable/data/v2/stub/EnhancedBigtableStubSettings.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java index 9cfcc16d7a..bd1188156d 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java @@ -236,6 +236,8 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi .setKeepAliveTimeout( Duration.ofSeconds(10)) // wait this long before considering the connection dead .setKeepAliveWithoutCalls(true) // sends ping without active streams + // Attempts direct access to CBT service over gRPC to improve throughput, + // whether the attempt is allowed is totally controlled by service owner. .setAttemptDirectPath(true); }