Config route priority

154 views
Skip to first unread message

Николай Ваганов

unread,
May 25, 2021, 11:38:10 AM5/25/21
to envoy-users
Hi there!

I have a problem and I think that you can help me with it.
I didn't find any information about priority route matching, so I tried to solve it by ownself but failed. For example we have several match rules:

prefix: /api/location - cluster1
path: /api/location/ - cluster2

With that config all of my requests on /api/location/test/me were sent to cluster1, but cluster 2 has more greedy match. Also I've tried to use regex:

regex: ^\/api\/location\/.*$

and failed too.

Does somebody know a way for "greedy priority" enabling ?

Thank you.

Zizon Qiu

unread,
May 25, 2021, 11:55:18 AM5/25/21
to Николай Ваганов, envoy-users
Move path before prefix?

route entries are evaluated in order and stop at the first match.


--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/af2d17ba-2baf-4635-b2e8-0c4ec7177d96n%40googlegroups.com.

Николай Ваганов

unread,
May 25, 2021, 12:02:24 PM5/25/21
to envoy-users
Thanks for the answer. I read it but thought that envoy has intelligent "best match" instruments instead of "first match".

вторник, 25 мая 2021 г. в 18:55:18 UTC+3, zzd...@gmail.com:
Reply all
Reply to author
Forward
0 new messages