Forum Discussion

MB_78_160630's avatar
MB_78_160630
Icon for Nimbostratus rankNimbostratus
Jun 12, 2014

iRules: Http Request Throttler

hello

 

I configured 4 VirtualServer using URLs and different ports on my BIGIP LTM1600: VS1 : @IP1 :8082 VS2 : @IP1 :8083 VS3 : @IP1 :8084 VS4 : @IP1 :8085

 

I want to limit the total number of simultaneous HTPP Post/Push queries (VS1+VS2+VS3/VS4) to X per second (Example 100Requests/Second). How to set up this configuration with iRules.

 

Regards MB

 

3 Replies

  • You should be able to craft something based on this:

     

    https://devcentral.f5.com/wiki/iRules.HTTP-Request-Throttle-version-10-1-and-above.ashx

     

    Just change GET to POST, and tailor the values to meet your desired number of transactions per user per time period.

     

  • Hello Thank you for the answer:

     

    is that this calculation applies to each request whatever the Virtualerver?

     

    And if I want to add another control such that the total number of queries received on (VS1 + VS2 + VS3) together shall not exceed another threshold.

     

    In summary: VS1 + VS2 + VS3 VS4 + must not exceed 100 Queries per second VS1 + VS2 + VS3 must not exceed 75 requests per second

     

    Regards

     

  • Unsure you're going to be able to get as granular as you want aggregating transactions across virtual servers. Perhaps someone in the community has done something like this and can offer more input.