-
Notifications
You must be signed in to change notification settings - Fork 153
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
OSPP: Traffic Distribution #501
Conversation
118be46
to
964afa3
Compare
964afa3
to
f7da3cf
Compare
res = spiltWeight(f.weight, c.weightFloor, c.weightCeil) | ||
} | ||
return res | ||
return spiltWeight(f.weight, c.weightFloor, c.weightCeil) | ||
} | ||
|
||
func (factory *FilterFactory) rulesMatch(f *Filter, path string) []*ClusterWrapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想了解一下这个path
和 cluster.Router
是如何匹配上的,有没有具体的例子可以描述一下 ,比如 path="/xxx/xx", cluster.Router = "/xxx"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看下这个pr: apache/dubbo-go-pixiu-samples#7
突然想到一个问题,把这些配置计算到md5,然后获取reqeust的相关信息计算md5去找到对应的cluster这样效率会快很多呀 |
初始化先把配置md5计算好 |
What this PR does:
Update Traffic Filter to pass all Tests.
Which issue(s) this PR fixes:
Fixes #402