Skip to content
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

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Conversation

maxingg
Copy link
Contributor

@maxingg maxingg commented Sep 27, 2022

What this PR does:
Update Traffic Filter to pass all Tests.
Which issue(s) this PR fixes:

Fixes #402

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

想了解一下这个pathcluster.Router 是如何匹配上的,有没有具体的例子可以描述一下 ,比如 path="/xxx/xx", cluster.Router = "/xxx"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baerwang
Copy link
Member

突然想到一个问题,把这些配置计算到md5,然后获取reqeust的相关信息计算md5去找到对应的cluster这样效率会快很多呀

@baerwang
Copy link
Member

突然想到一个问题,把这些配置计算到md5,然后获取reqeust的相关信息计算md5去找到对应的cluster这样效率会快很多呀

初始化先把配置md5计算好

@PhilYue PhilYue added this to the 0.6.0 milestone Oct 16, 2022
@AlbumenJ AlbumenJ merged commit 013237f into apache:develop Oct 17, 2022
bobtthp pushed a commit to bobtthp/dubbo-go-pixiu that referenced this pull request Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GSoC 2022: Pixiu Traffic Distribution Mode Implementation
5 participants