wso2 / product-microgateway

Choreo Connect is a cloud-native, open-source, and developer-centric API gateway.
https://wso2.com/choreo/choreo-connect/
Apache License 2.0
287 stars 246 forks source link

MGW threads in blocked state when Analytics is enabled via gRPC protocol #3471

Closed SavinduDimal closed 6 months ago

SavinduDimal commented 6 months ago

Description

When MGW is configured with gRPC based analytics, in high TPS scenarios, observed API invocation failures. In MGW thread dump several threads were observed in BLOCKED state. In order to mitigate this timeoutInMillis parameter in [1] was decided to be make a configurable parameter.

[1] - https://github.com/wso2/product-microgateway/blob/3.2.x/components/micro-gateway-core/src/main/ballerina/src/gateway/grpcAnalytics/gRPC_analytics_client.bal#L49

Steps to Reproduce

[1] - https://mg.docs.wso2.com/en/latest/how-tos/analytics-for-microgateway/#using-real-time-data-publishing-grpc-based

Version

3.2.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response