Forum Discussion

JCMATTOS_41723's avatar
JCMATTOS_41723
Icon for Nimbostratus rankNimbostratus
Oct 30, 2009

Connection limit to a uri?

We have an LTM with 9.4.7 and would like to set a connection limit of 50 to users that access a certain uri file. Essentially, we have a download /www.abc.comany/download/test.exe which we would like to limit the amount of concurrent users access to this file download and present a sorry page if it goes over the 50 limit. However, we would like the rest of the users not accessing this particular file to forward all traffic normal with no restrictions. Any help is appreciated. Thx!
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I should add that if you're only checking one path you could remove the datagroup and the replace most of the arrays with single variables. Also, the iRule decrements the count of unanswered HTTP requests when the HTTP response headers are parsed. So if there is a long gap between LTM receiving the response headers and when the client finishes receiving the response content, the iRule will have an artificially low count of unanswered requests.

     

     

    Aaron