googleapis / googleapis/google-cloud-go

auth: log warning for excessive gRPC pool size

Open
#12,628 0 comments 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

## Is your feature request related to a problem? Please describe.

Excessive pool size is a likely cause of high error rates in token requests. See b/429104987#comment38 for full analysis.

## Describe the solution you'd like

Log a warning if the user configures gRPC pool size (using [option.WithGRPCConnectionPool](https://pkg.go.dev/google.golang.org/api/option#WithGRPCConnectionPool)) greater than a reasonable threshold based on usage guidance such as in https://cloud.google.com/bigtable/docs/configure-connection-pools#example

## Describe alternatives you've considered

Add similar guidance to the docs for `option.WithGRPCConnectionPool`.

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.