Skip to content

alts: Enable user to configure max number of concurrent ALTS handshakes.#10016

Merged
temawi merged 5 commits intogrpc:masterfrom
matthewstevenson88:alts-max-concurrent-handshakes
Apr 10, 2023
Merged

alts: Enable user to configure max number of concurrent ALTS handshakes.#10016
temawi merged 5 commits intogrpc:masterfrom
matthewstevenson88:alts-max-concurrent-handshakes

Conversation

@matthewstevenson88
Copy link
Contributor

The logic is straightforward: attempt to read the GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES environment variable and, if it set to an integer, instantiate the handshake queues based on this integer.

Based on go/grpc-alts-concurrent-handshake-cap. See grpc/grpc#32672 for a comparison with the C-core logic.

@matthewstevenson88 matthewstevenson88 marked this pull request as ready for review April 6, 2023 17:03
@matthewstevenson88
Copy link
Contributor Author

@temawi Would you be able to help review this PR?

Comment on lines +57 to +58
@VisibleForTesting
static final String ALTS_MAX_CONCURRENT_HANDSHAKES_ENV_VARIABLE =
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you can remove the @VisibleForTesting on this one.

@temawi temawi merged commit 11a1f9e into grpc:master Apr 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants