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

lazyload support cache wormhole ports #279

Open
believening opened this issue Jan 29, 2023 · 2 comments
Open

lazyload support cache wormhole ports #279

believening opened this issue Jan 29, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request lazyload

Comments

@believening
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

After lazyload restarts, it will recalculate the wormhole port, affecting the resources it generates, including envoyfilter, and the configmap used by globalsidecar.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@cywang1905
Copy link
Contributor

背景

懒加载组件会根据当前集群中的服务端口范围,计算出兜底路由的作用范围。

问题

这个计算比较耗时,每次懒加载升级,会重新 list 一遍集群全量服务,计算端口范围,再去更新兜底路由。在整个动作完成前,未被兜底路由纳管的端口,如果有请求发出,则只能从业务sidecar容器走 paasthroughCluster 透传出去,失去网格治理能力。

思路

懒加载将计算好的端口范围持久化,下次重启后,直接从持久化处读取到,使得所有兜底路由立刻纳管所有端口,保证网格治理能力生效。这种持久化方式,可以考虑 SlimeBoot CR 的 annotation 等方式

@jk-tonycui
Copy link
Contributor

I would like to contribute, please assign to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lazyload
Projects
None yet
Development

No branches or pull requests

4 participants