wso2/product-microgateway

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

SavinduDimal opened this issue · 0 comments

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

  • Configured MGW-3.2.0 with APIM-Analytics 3.2.0 following the steps given in [1].
  • Added a thread sleep in APIM-Analytics side to mimic slow analytics response.
  • Used jmeter to invoke the API multiple times.

[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