# HTTP: retry technical questions

**URL:** <https://community.f5.com/t/http-retry-technical-questions/62245>\
**Category:** Technical Forums\
**Tags:** irules, big-ip, devops, application-delivery\
**Created:** [July 25, 2019, 10:04am UTC](https://community.f5.com/t/http-retry-technical-questions/62245 "2019-07-25T10:04:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayurtester](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mayurtester](https://community.f5.com/u/Mayurtester)\
**Post date:** [July 25, 2019, 10:04am UTC](https://community.f5.com/t/http-retry-technical-questions/62245/1 "2019-07-25T10:04:12Z")

</div>

Hello,

I am reading the wiki article for HTTP: retry where I have few questions on “Re-sends a request to a server. Can be either the same or a different request, to the same or a different server.”

1. What does F5 do with server which sends the RESET/5XX error (after selecting different server from the pool)
2. HAproxy does the HTTP retry for RoundRobin LB method, does F5 support other LB methods while selecting different server.
3. is F5 doing HTTP retry for POST request where response from server is RESET
4. How does F5 do TCP connection retry and is it for 1st connection packet?
5. Correct me if I am wrong, HTTP : retry is for same server where response is 5xx and LB: reselect is for selecting next up server from the pool where response is 5XX?

---

<div class="post-metadata">

**Author:** ![Yoann\_Le\_Corvi1](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@Yoann\_Le\_Corvi1](https://community.f5.com/u/Yoann_Le_Corvi1)\
**Post date:** [July 25, 2019, 1:47pm UTC](https://community.f5.com/t/http-retry-technical-questions/62245/2 "2019-07-25T13:47:54Z")

</div>

Hi,

I am not quite sure I get all your questions, but I’ll give it a try. Do not hesitate to precise your request if not.

1 - HTTP::retry is to be used in HTTP Response and Response\_Data events only. Hence, it can process a 500 error received by the backend, but probably not a RESET (L4)

2 - If you have LTM license, F5 supports many more LB Methods than Round Robin.

3 - As mentionned, if the server response is reset, you will not trigger HTTP\_RESPONSE events, hence, I don’t think you can use the HTTP::retry command. It could be donewhen receiving specific HTTP Error status from the backend

4 - This part is handled by TCP profiles (e.g. parameter Maximum Syn Retransmissions for SYN packet which is 3 by default, and maximum segment restransmission which is 8 by default)

5 - HTTP Retry resubmits a request. As in the examples given in clouddocs, if you want to interfere with the pool member selection you will need to code it in the iRules.

I hope this somehow helps you, otherwise, do not hesitate to complete, or detail precisely the problem you are trying to solve.

Have a nice day.

Yoann

---

<div class="post-metadata">

**Author:** ![Mayurtester](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mayurtester](https://community.f5.com/u/Mayurtester)\
**Post date:** [July 25, 2019, 2:10pm UTC](https://community.f5.com/t/http-retry-technical-questions/62245/3 "2019-07-25T14:10:51Z")

</div>

Thank you for your reply and providing the insights. Please address my follow up question.

- “if you want to interfere with the pool member selection you will need to code it in the iRules” So May I know if the service will be skipped (removed from the pool) if it is sending the 5xx error
- I want to know what will happen to the service which has sent the 5xx error, will that remains in the server pool or will it be removed from the pool for some interval so that next request should not select this service. I am referring to LB:FAILED event ([https://devcentral.f5.com/s/feed/0D51T00006i7ZpISAU](https://devcentral.f5.com/s/feed/0D51T00006i7ZpISAU))

---

<div class="post-metadata">

**Author:** ![Yoann\_Le\_Corvi1](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@Yoann\_Le\_Corvi1](https://community.f5.com/u/Yoann_Le_Corvi1)\
**Post date:** [July 25, 2019, 3:38pm UTC](https://community.f5.com/t/http-retry-technical-questions/62245/4 "2019-07-25T15:38:15Z")

</div>

Hi

That will depend of your monitor. If your monitor requires a 200 response status to be up, then the pool member sending a 500 should be marked down, and not be selected again in the load balancing decision.

Sincerely

---

<div class="post-metadata">

**Author:** ![Mayurtester](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mayurtester](https://community.f5.com/u/Mayurtester)\
**Post date:** [July 25, 2019, 4:49pm UTC](https://community.f5.com/t/http-retry-technical-questions/62245/5 "2019-07-25T16:49:24Z")

</div>

Thank you &nbsp; for your response, As I can see LB:FAILED event takes out the server from the pool so can I use this event along with HTTP retry event.

I want to make sure if responding server is sending 5xx error, then that server will be out of server pool for some time and then monitor will prob it once server is sending desired response we will add it to server pool again.

Will that be possible?

---

<div class="post-metadata">

**Author:** ![Yoann\_Le\_Corvi1](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@Yoann\_Le\_Corvi1](https://community.f5.com/u/Yoann_Le_Corvi1)\
**Post date:** [July 31, 2019, 2:06pm UTC](https://community.f5.com/t/http-retry-technical-questions/62245/6 "2019-07-31T14:06:51Z")

</div>

Hi

Yep. Just configure your monitor to require a 200 response in the field “Receive String”.

Then any other response from your backends will mark the pool meember down, until it sends a 200 again. Very simple and efficient.

Yoann
