F5 irules ----- reset when HTTP request 400/500 Error

Source: Internet
Author: User

 
#400/500 error retry # When the service returns the 400/500 status and has a surviving node in the current pool, reset the HTTP request and reselect the node in the pool. # Accept the new HTTP request when client_accepted {Set retry 0} When http_request {set http_request [http :: request]} When http_response {if {([http: Status] starts_with "4") | ([http: Status] starts_with "5 ")} {incr retryif {$ retry <= [active_members [LB: Server pool]} {http :: retry $ http_request} else {Set retry 0} else {Set retry 0} When lb_selected {log local0.info "run $ retry" if {($ retry> 0) & ($ retry <= [active_members [LB: Server pool])} {LB: reselect pool [LB: Server pool]}


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.