apache / apache/beam

Raise Java Http KeepAlive Cache Size

Open
#21,575 1 comment 0 reactions 0 assignees View on GitHub
dataflow improvement P2 runners
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Java HTTP[S]Connection's keep alive by default keeps 5 idle connections alive. Dataflow user workers could make 1000s of connection to the same endpoint. The HTTPS handshake overhead is significant in pipelines using BigQueryIO streaming inserts and bumping up the keep alive limit reduces it. The keep alive connection count can be changed by setting the JVM system property "http.maxConnections". 

Imported from Jira [BEAM-14437](https://issues.apache.org/jira/browse/BEAM-14437). Original Jira may contain additional context.
Reported by: arunpandianp.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.