Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner: use BatchCreateSessions to init pool
Adds a session client that is responsible for creating sessions for the session pool and others that need a session. The session client encapsulates the details of spreading all sessions over all available gRPC channels. The session client also contains functionality for creating batches of sessions that can be used by the session pool to speed up initialization of a large session pool or to create a burst of sessions. These batches are also automatically evenly distributed over all available channels. The default MinOpened sessions configuration is changed to 100. The session pool uses the BatchCreateSessions method to initialize the pool if MinOpened > 0. Updates #1566. Change-Id: I13e6fbc321688cdbd396913e4f4c01aa8631fb2c Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/45111 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jean de Klerk <deklerk@google.com>
- Loading branch information
Showing
9 changed files
with
907 additions
and
154 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.