-
Notifications
You must be signed in to change notification settings - Fork 456
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
[performance] in large-scale clusters, init node router policy too slow #4895
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: cmdy <[email protected]>
Pull Request Test Coverage Report for Build 12594003126Details
💛 - Coveralls |
Signed-off-by: cmdy <[email protected]>
Signed-off-by: cmdy <[email protected]>
Signed-off-by: cmdy <[email protected]>
Signed-off-by: cmdy <[email protected]>
Signed-off-by: cmdy <[email protected]>
@oilbeater PTAL |
VPC Eregss Gateway e2e test failed. Seems like the LR policy created by egress gateway is deleted. Is there any chance that the LR policy is deleted by the change in this PR? |
Signed-off-by: cmdy <[email protected]>
this PR does not delete the LR policy by egress gateway |
@@ -63,6 +64,14 @@ func NewOvnNbClient(ovnNbAddr string, ovnNbTimeout, ovsDbConTimeout, ovsDbInacti | |||
return nil, err | |||
} | |||
|
|||
dbModel.SetIndexes(map[string][]model.ClientIndex{ |
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.
priority 大部分是一样的是不是不用建索引了,或者比较一下效果
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.
这里主要用了priority 和 match 做联合索引,但是考虑到如果其中某一个刚好没有值的话,就会变成索引;libovsdb 这个客户端索引,如果不明确指定索引字段的话就会完全查不出来结果;所以这里就除了联合索引外还额外为priority和match 做了单索引配置;另 这里我这边主要对比了where 和 whercache方法的查询效率,在建立索引情况下,表数据量级较大(20w)情况下,单次同条件查询Where 要比WherCache 大概快100~200ms左右,如果需要的话我整理一下具体对比数据
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #4849
PR #4884 merge into master branch