grpc-go icon indicating copy to clipboard operation
grpc-go copied to clipboard

alts: Read max number of concurrent ALTS handshakes from environment variable.

Open matthewstevenson88 opened this issue 2 years ago • 7 comments

This mimics the existing functionality for Java (https://github.com/grpc/grpc-java/pull/10016) and for C++ (https://github.com/grpc/grpc/pull/32672). When the environment variable is not set, the functionality is unchanged.

Along the way, we remove 2 obsolete TODOs in handshaker.go.

RELEASE NOTES:

  • alts: add support for GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES env var

matthewstevenson88 avatar May 10 '23 16:05 matthewstevenson88

@easwars Would you be able to take a look at this PR when you have a chance? :)

matthewstevenson88 avatar May 10 '23 16:05 matthewstevenson88

This PR is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

github-actions[bot] avatar May 16 '23 22:05 github-actions[bot]

Waiting on #6300 before coming back to this.

matthewstevenson88 avatar May 22 '23 00:05 matthewstevenson88

#6300 is merged; is this ready to work on again?

dfawley avatar May 31 '23 20:05 dfawley

#6300 is merged; is this ready to work on again?

Yes thanks! I've been cleaning it up this morning. Let me amend the tag.

matthewstevenson88 avatar May 31 '23 21:05 matthewstevenson88

Thanks for the great suggestions @easwars and apologies for the delay: your suggestion to use a weight semaphore was a great one, but I wanted to add another e2e test to ensure correctness and it took a little while to get it working as expected. :)

matthewstevenson88 avatar Jun 01 '23 05:06 matthewstevenson88

@dfawley It seems @easwars is OOO, would you mind if I re-assign to you to finish the review?

matthewstevenson88 avatar Jun 01 '23 22:06 matthewstevenson88

Why are all these go.mod changes needed? That seems unexpected, given that all the code changes are in the main module.

Sorry about that, not sure what happened there. This should all be cleaned up now.

matthewstevenson88 avatar Jun 07 '23 21:06 matthewstevenson88

Thanks for the review!

matthewstevenson88 avatar Jun 08 '23 01:06 matthewstevenson88