Forum Discussion

ongle_69188's avatar
ongle_69188
Icon for Nimbostratus rankNimbostratus
Dec 05, 2007

Request for hints or pointers to do something in iRules

Hi... I am about to figure out if I can do something with iRules (and how), but while I'm off RTFM'ing I thought I'd just ask if anybody has any pointers that might make things easier on me. Thanks in advance!!

 

 

I have an ajax upload control (RadUpload from telerik) which has a matching progress control to give feedback on the status up the upload (this is for large files like videos). The problem with the progress control is that it *must* be made back to the same server in our load balanced pool that is also handling the file upload (via http post). If the load balancer sends the request to some other server (which knows nothing of the upload), the progress area doesn't work correctly.

 

 

So... I'd like to be able to tell the F5 to direct any request for /SomeKnownUrlPath.blah (the progress status ajax request) to the same server that currently handling a post (w/file upload) from the same client.

 

 

Does this make sense or am I going in the wrong direction?

 

 

Again, thanks for any pointers!
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi ongle -

     

     

    Sounds like simple source address persistence would do the trick for you, no iRule required...

     

     

    /deb
  • Hi Deb, thanks for the response.

     

     

    Yes, I could do that but then each source ip would always be directed back to the same server for the duration of their visit. And everybody coming from the same proxy (e.g. AOL) would all go to the same server. It is a good initial fix but it was my hope to only stick the client to a particular server when they are uploading something to fully take advantage of the load balancing.
  • hum... upon reflection I think I understand your suggestion better. With a small enough timeout a reasonable balance should be found.

     

     

    I'll give it a try. Thanks!