feat: 增加单元化多活流量调度的支持 #7292
hexiaofeng
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
It seems that this is private requirements. From your description, 1 & 2 can be done with
How to find out that the traffic is not from this unit? And in your description, the unit may be a term in your business context, could it be equivalent to APISIX upstream? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
单元化多活流量调度的需求,根据规则获取某个变量。
1)判断变量是否在单元的白名单里面,是则路由到指定单元
2)判断变量是否在单元的前缀白名单里面,是则路由到指定单元
3)采用BKDRHash算法获取变量hash值,并按照指定参数取模,判断结果区间在哪个单元,并路由到指定单元。
路由纠错,如果发现流量不是本单元的,则可以代理或重定向到正确的单元
单元的域名可能加了前缀,例如主域名是x.y.z,北京单元的域名是bj-x.y.z
能否完善traffic_split,支持单元化多活流量调度
Beta Was this translation helpful? Give feedback.
All reactions