wso2 / andes

Apache License 2.0
39 stars 129 forks source link

[APIM][4.4.0] Configure Broker Connect Timeout to avoid Indefinite Waiting #1064

Closed dakshina99 closed 4 weeks ago

dakshina99 commented 4 weeks ago

Purpose

In a distributed WSO2 API Manager setup, throttling functionality was not working correctly when one or more traffic manager nodes were unavailable. Specifically, when one traffic manager node could not establish a connection while another was still active, event duplication led to threads becoming stuck, causing throttling failures.

Fix

Use the broker connection timeout property to introduce a waiting timeout for the broker pooled connection establishment

Impact

The process of establishing a broker connection will continue trying until the specified timeout is reached. If a timeout is defined in the broker's URL properties, that value will be used. Otherwise, the connection attempt will default to a 120-second timeout if no specific connect timeout is provided.