-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngx.balancer 如何设置重试状态码 #445
Comments
I think you can learn form: Lines 179 to 230 in 99603e5
just an idea. |
ngx.balancer的重试机制好像只有在机器故障,或者是超时的时候才进行重试 如果机器是正常的,只是返回的状态码异常,是不会触发重试机制的,这个时候 local state, status = b.get_last_failure() 返回的结果是nil,nil 最关键的是如何触发这个重试机制 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想要使用 ngx.balancer 设置在 404 的时候进行重试,ngx.balancer 支持吗
The text was updated successfully, but these errors were encountered: