xianshun163 commented on issue #6352:
URL: https://github.com/apache/apisix/issues/6352#issuecomment-1043941209
I modify it like this:
1、in balancer.lua local function pick_server(route, ctx)
-- when all node is fail
ctx.balancer_server = my_backup_gateway_server
ctx.var.upstream_uri = ctx.var._cache.real_request_uri
ctx.donot_change_uri = true
2、in balancer.lua function _M.run(route, ctx, plugin_funcs)
if (run or header_changed or ctx.donot_change_uri ) and
balancer.recreate_request then
core.log.warn("do recreate_request")
balancer.recreate_request()
end
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]