<#6448 Set MaxConcurrentStreams for flyteadmin grp...
# flyte-github
c
#6448 Set MaxConcurrentStreams for flyteadmin grpc server Pull request opened by pmahindrakar-oss ## Tracking issue N/A (internal stability enhancement) ## Why are the changes needed? Under high load, FlyteAdmin currently accepts all gRPC requests without constraint due to the lack of a MaxConcurrentStreams configuration. This can lead to unbounded in-flight requests, resulting in excessive memory usage, DB connection exhaustion, increased latency, and eventual cancellations or INTERNAL errors. Adding a MaxConcurrentStreams limit allows the gRPC server to enforce backpressure at the transport layer, ensuring that only a bounded number of requests are actively processed at a time. This helps stabilize system behavior under bursty or sustained traffic conditions, particularly for high-volume APIs coming from propeller ## What changes were proposed in this pull request? Introduced MaxConcurrentStreams as a configurable field in the FlyteAdmin gRPC server configuration. Updated the grpc.NewServer initialization to apply this limit when set. Default behavior remains unchanged (unbounded) unless explicitly configured. ## How was this patch tested? Trivial change as it keeps the old behavior if unset. Unit test for config changes ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This pull request introduces a MaxConcurrentStreams configuration for the FlyteAdmin gRPC server, enhancing system stability by limiting concurrent requests. A unit test has been added to verify the functionality of this new feature, while the default behavior remains unchanged. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 - The changes are straightforward and well-documented, making the review process relatively quick. flyteorg/flyte