Forum Discussion

Joe_Fontes_4518's avatar
Joe_Fontes_4518
Icon for Nimbostratus rankNimbostratus
Jan 31, 2007

503 Errors and iRules

I have been searching around the forums for a possible solution to my problem and haven't found anything that addresses what it is I am looking to do.

 

I have one pool that seems to be putting out 503 errors sporadically. What I would like to do is have an iRule fire off on a server response of 503 and somehow do a lb:reselect. I have read on the forums that you can't do a reselect in conjunction with a server response, any idea of another method I could use to hvae this done?

 

I have added additional monitoring with server strings to remove these machines from the pool, although on occasion the monitor will get the proper response and in between checks the 503 will pop up and display to the end user.

 

Any ideas?
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I'd suggest looking into the HTTP::retry command. Click here

     

     

    This is the command you'd use to try to resend the same request. I know there have been some good examples of its use in the forums, as well.

     

     

    Let me know if you hit a dead-end again.

     

     

    Colin