Commit 9288814
optimize grpc settings (#36528)
* increase grpc keepalive timeout and adjust ping settings
Adjust GRPC channel settings to reduce ping frequency and allow more flexible keepalive behavior. This improves performance by reducing unnecessary network traffic while maintaining connection stability.
* yapf
* perf(subprocess_server): add grpc keepalive options to improve connection stability
Add various grpc keepalive and ping-related options to prevent connection drops during long-running operations. The new settings help maintain active connections and detect failures faster.
* perf(grpc): increase keepalive and ping intervals to reduce frequency
Increase grpc.keepalive_time_ms from 30s to 60s and grpc.http2.min_sent_ping_interval_without_data_ms from 10s to 30s to reduce network overhead and improve performance
* format
* more changes
* fix(milvus): increase timeout to 60s for container startup
* fix(io): handle empty init_result in FileBasedSink by falling back to temp dir
Add fallback logic when initialization result is EmptySideInput to create a temporary directory instead. This prevents potential issues when the pipeline initialization phase returns an empty collection.
* retry Milvus
* style: use string formatting in milvus search logging
* fixed external tests
* tests
* fix(enrichment_test): sort output and expected values before comparison
Ensure test passes when output order differs from expected order
* docs(filebasedsink): add TODO comment for prism issue
Add reference to GitHub issue #36563 for Prism compatibility
* more tunes on the grpc options
* addressed some comments
* removed some options
* keep 300000 for keepalive_timeout_ms
* fixed the comments
* added keepalive_time_ms back
* Update sdks/python/apache_beam/utils/subprocess_server.py
Co-authored-by: Sergii Tkachenko <[email protected]>
* address comments.
---------
Co-authored-by: tvalentyn <[email protected]>
Co-authored-by: Sergii Tkachenko <[email protected]>1 parent 63a8be9 commit 9288814
File tree
2 files changed
+22
-4
lines changed- sdks/python/apache_beam
- runners/worker
- utils
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
190 | 202 | | |
191 | 203 | | |
192 | 204 | | |
| |||
0 commit comments