You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "yuqiquan (via GitHub)" <gi...@apache.org> on 2023/11/06 11:53:37 UTC

[I] help request: apisix 想要支持 proxy_next_upstream error timeout http_404 [apisix]

yuqiquan opened a new issue, #10457:
URL: https://github.com/apache/apisix/issues/10457

   ### Description
   
   想要使用apisix来实现 proxy_next_upstream error timeout  http_404 nginx配置,就是当上游状态码是404的时候,到下一个上游重试,怎么实现呢。有什么好的思路
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.15.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #10457:
URL: https://github.com/apache/apisix/issues/10457#issuecomment-1801094818

   There is already a retry mechanism:
   <img width="826" alt="image" src="https://github.com/apache/apisix/assets/61597896/eedcddc6-9301-49db-838b-a5854069d79b">
   
   https://github.com/shreemaan-abhishek/apisix/blob/105993f40f34768cd0a86035d01393346fff3a94/apisix/balancer.lua#L167-L177
   
   But it doesn't support fine grain control.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #10457: help request: apisix wants to support proxy_next_upstream error timeout http_404
URL: https://github.com/apache/apisix/issues/10457


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10457:
URL: https://github.com/apache/apisix/issues/10457#issuecomment-2473058768

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10457:
URL: https://github.com/apache/apisix/issues/10457#issuecomment-2443771776

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "yuqiquan (via GitHub)" <gi...@apache.org>.
yuqiquan commented on issue #10457:
URL: https://github.com/apache/apisix/issues/10457#issuecomment-1807623315

   是的  但是这个重试机制好像只有在上游机器故障挂掉或者是超时时候才会进行重试
   
   当上游机器正常,不管返回的状态码是什么,即使是5XX,重试机制都不会被触发,我觉得业务上有很多的要求都是要满足   proxy_next_upstream 这一个命令的 
   
   健康检查只有在访问以后,才会把异常状态码的上游剔除,无法满足这一个要求 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: apisix wants to support proxy_next_upstream error timeout http_404 [apisix]

Posted by "yuqiquan (via GitHub)" <gi...@apache.org>.
yuqiquan commented on issue #10457:
URL: https://github.com/apache/apisix/issues/10457#issuecomment-1807646021

   Hope ngx.balancer add new function to  proxy_next_upstream


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org