apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: 如何实现跳过当前高优先级路由,继续匹配低优先级路由

Open ariesyp opened this issue 1 year ago • 0 comments

Description

请教一下,有两个同样匹配规则但优先级不同的,upstream也不同的路由,当高优先级路由的upstream中没有node时,能否通过继续匹配低优先级的路由,并在匹配成功后使用低优先级路由的upstream进行转发。我想到可以通过自定义插件判断upstream中的node是否为空,但是不知道是否有跳过当前路由的方法。期待你们的回答,感谢。

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

ariesyp avatar May 07 '24 06:05 ariesyp