Skip to content

Commit 89865ff

Browse files
fix: optimize channel pool settings to allow pool to down size with anti idle pings (#9752)
* chore: misc non-functional cleanup * feat: add jitter to anti idle task * fix: optimize channel pool settings to allow pool to down size with anti idle pings
1 parent 5698028 commit 89865ff

File tree

1 file changed

+3
-3
lines changed
  • bigtable/bigtable-proxy/src/main/java/com/google/cloud/bigtable/examples/proxy/commands

1 file changed

+3
-3
lines changed

bigtable/bigtable-proxy/src/main/java/com/google/cloud/bigtable/examples/proxy/commands/Serve.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ void start() throws IOException {
115115
ResourceCollector resourceCollector = new ResourceCollector();
116116
refreshExecutor = Executors.newSingleThreadScheduledExecutor();
117117

118-
// From
119-
// https://github.com/googleapis/java-bigtable/blob/e0ce2fe3c1207731d15e56faec66ba099652b87c/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java#L406-L410
120118
ChannelPoolSettings poolSettings =
121119
ChannelPoolSettings.builder()
122120
.setInitialChannelCount(10)
123-
.setMinRpcsPerChannel(1)
121+
.setMinChannelCount(2)
122+
.setMaxChannelCount(20)
123+
.setMinRpcsPerChannel(5)
124124
.setMaxRpcsPerChannel(50)
125125
.setPreemptiveRefreshEnabled(true)
126126
.build();

0 commit comments

Comments
 (0)