ovn lb select the local chassis's backend prefer #4894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
What type of this PR
Examples of user facing changes:
目前只改了ovn 部分代码,kube-ovn 代码还在开发,可以暂时使用slr的配置:配置模板入下:
实现原理是获取到vip backend的 chassis , 新增加流表入下:
is_chassis_resident("nginx-6f55f97f94-8kvlx.default") , 其中 nginx-6f55f97f94-8kvlx.default 是某个vip 的backend下的任意一个lsp,backends=10.16.0.3:80 表示这个lb 在这个chassis下的所有backendip: port 。
如果hit不到以上流表,就会走原来的ovn lb 规则。
该功能需要配置Load_balancer的 两个字段
option:prefer_local_backend
ip_port_mappings
Which issue(s) this PR fixes
Fixes #(issue-number)