-
Hello, I have a question regarding the proxy behavior when the container that being proxied is down, is there any retry mechanism that prevents requests from getting error 50X? The only thing that I found regarding the possible case is this docs but didn't specify anything about my question. The scenario that I did was using WRK to test my apps, my apps can't handle the request, hence the container is down and restarted by Kubernetes (but not the pod), this is the result that I got.
Notice that there isn't any single 50X error, but only timeout. What do I expect Is this the expected behavior? Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
When your application container is down, linkerd enters "fail-fast" mode after (I think) 3 seconds. That is, we'll buffer requests for up to 3s and then start failing them with a 502. It may be the case that your application is restarting within 3s so the proxy never enters fail-fast? |
Beta Was this translation helpful? Give feedback.
When your application container is down, linkerd enters "fail-fast" mode after (I think) 3 seconds. That is, we'll buffer requests for up to 3s and then start failing them with a 502. It may be the case that your application is restarting within 3s so the proxy never enters fail-fast?