fix: scale number of threads to scale with number of cpus #878
fix: scale number of threads to scale with number of cpus #878
Conversation
This is temporary solution until something better can be worked out. Ideally we would separate the executor for gax and the transport provider. But there are some backwards compatibility concerns to workout first.
Codecov Report
@@ Coverage Diff @@
## master #878 +/- ##
============================================
+ Coverage 78.6% 78.63% +0.02%
- Complexity 1162 1163 +1
============================================
Files 203 203
Lines 5141 5143 +2
Branches 413 413
============================================
+ Hits 4041 4044 +3
Misses 925 925
+ Partials 175 174 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(with fingers crossed)
It seems the presubmits are broken and are preventing merging prs |
@vam-google would you mind cutting a release with this fix? |
I believe DPE team now handles this. @chingor13 can you cut a release? |
@igorbernstein2 Does |
Not really. If there is no cpu config, then it will default to 1, which is why the PR sets a minimum to 4 as before. This is just a bandaid, the real fix would be more along the lines of #869. However that approach was a bit controversial, so this change was put in place until @vam-google could figure out how to incorporate #869 without too much breakage |
This is temporary solution until something better can be worked out.
Ideally we would separate the executor for gax and the transport provider. But there are some backwards compatibility concerns to workout first.