ahmedabu98 commented on code in PR #31721:
URL: https://github.com/apache/beam/pull/31721#discussion_r1665876385


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryOptions.java:
##########
@@ -109,6 +109,26 @@ public interface BigQueryOptions
 
   void setNumStorageWriteApiStreamAppendClients(Integer value);
 
+  @Description(
+      "When using the STORAGE_API_AT_LEAST_ONCE write method with multiplexing 
(ie. useStorageApiConnectionPool=true), "
+          + "this option sets the minimum number of connections each pool 
creates. This is on a per worker, per region basis. "
+          + "Note that in practice, the minimum number of connections created 
is the minimum of this value and "
+          + "(numStorageWriteApiStreamAppendClients x num destinations).")
+  @Default.Integer(2)
+  Integer getMinConnectionPoolConnections();
+
+  void setMinConnectionPoolConnections(Integer value);
+
+  @Description(
+      "When using the STORAGE_API_AT_LEAST_ONCE write method with multiplexing 
(ie. useStorageApiConnectionPool=true), "
+          + "this option sets the maximum number of connections each pool 
creates. This is on a per worker, per region basis. "
+          + "This value should be greater than or equal to the total number of 
dynamic destinations, otherwise a "
+          + "race condition occurs where append operations compete over 
streams.")
+  @Default.Integer(20)

Review Comment:
   > How many connections are jobs that are running into problems using? IIRC 
it is orders of magnitude higher than this
   
   I think the issue you're referencing is a different one where 
STORAGE_WRITE_API batch would hit concurrent connections quota. It's been fixed 
by #31710



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to