Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable affinity for grpc-gcp when there is no channel hint. #3012

Closed
wants to merge 1 commit into from

Conversation

arpan14
Copy link
Contributor

@arpan14 arpan14 commented Apr 5, 2024

SpannerOptions#enableGrpcGcpExtension enabled GRPC GCP extension which is a separate library that handles channel management. By default this assumes session to channel affinity.

With multiplexed session we no longer maintain any channel hint with the session. However, grpc-gcp would still assume session to channel affinity and that may cause higher latencies. This change disables affinity whenever there is no channel hint associated with the session. Effectively this will disable affinity when multiplexed sessions are launched.

@arpan14 arpan14 requested a review from a team as a code owner April 5, 2024 17:48
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner API. labels Apr 5, 2024
Copy link
Contributor

@nimf nimf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harshachinta harshachinta added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 15, 2024
@olavloite
Copy link
Collaborator

Closing as there has not been any activity in the past several weeks. Please re-open if this is still relevant.

@olavloite olavloite closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants