How to limit max connection allowed in WSO2 ESB?

I want to limit the number of connection received by WSO2 ESB. Is there any property to be able to limit by properties (axis2, carbon, etc.)?

Upvotes: 0

Views: 670

Answers (2)

Amila Maharachchi
Amila Maharachchi

Reputation: 2149

This answer is based on the understanding gained from your comment. So, I assumed your backend has a limit of requests which can be processed which is less than what the ESB can accept.

There are two option:

  1. Similar to catalina-server.xml for tomcat, there is pass-thru.properties file in the conf folder where you can tune certain parameters to suite the load you expect and also to match the capabilities of the VM you have hosted the ESB. https://docs.wso2.com/display/ESB490/Configuring+passthru-http.properties
  2. One disadvantage of above option would be, some of your requests will not be accepted by the ESB if its too busy. To overcome that, you can use a queueing mechanism. i.e. You accept all the requests and store them in a message store (a queue). Then configure a message processor to retrieve those messages and process. Disadvantage of this option is, its difficult to cater a request response scenario.

As Bhathiya has mentioned, you can front your ESB with a WSO2 API Manager and throttle the requests too.

Upvotes: 2

Bee
Bee

Reputation: 12502

Until ESB 4.8.1, it had throttling feature. You also can use Throttling Mediator in each service.

Another option is to front ESB by WSO2 API Manager which has complete throttling support.

Upvotes: 0

Related Questions