This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dynamic channel pool scaled by number of outstanding request (#…
…1569) * merge RefreshingManagedChannel & SafeShutdownManagedChannel into ChannelPool. The eventual goal is to allow channel pool to safely add remove channels. The code has been refactored roughly as: - SafeShutdownManagedChannel is now ChannelPool.Entry and ReleasingClientCall - RefreshingManagedChannel has been merged into ChannelPool as a pair of functions scheduleNextRefresh & refresh * migrate SafeShutdownManagedChannel tests * migrate old tests and remove RefreshingManagedChannel and SafeShutdownManagedChannel * fix test * address feedback * fix race condition on refresh() * fix warnings in test * Update gax-grpc/src/test/java/com/google/api/gax/grpc/ChannelPoolTest.java Co-authored-by: Chanseok Oh <[email protected]> * Update gax-grpc/src/test/java/com/google/api/gax/grpc/ChannelPoolTest.java Co-authored-by: Chanseok Oh <[email protected]> * handle race condition * Update gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java Co-authored-by: Chanseok Oh <[email protected]> * introduce dynamic channel pool * fix test after broken merge * format * address feedback * remove unused import * inline old factory methods Co-authored-by: Chanseok Oh <[email protected]>
- Loading branch information
1 parent
7141860
commit fff2bab
Showing
9 changed files
with
648 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.