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

支持动态upstream #922

Open
marchlhw opened this issue Dec 29, 2021 · 6 comments
Open

支持动态upstream #922

marchlhw opened this issue Dec 29, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@marchlhw
Copy link

后端实例ip+port不需要人为配置,直接从注册中心根据相关前缀key获取,可以支持常用的注册中心,比如:etcd、zk、eureka、nacos等

@githublaohu
Copy link

etcd、zk、eureka、nacos。全部要支持吗?

@arrow2012
Copy link

动态upstream 主流的 用 consul,ETCD 比较多,这2个应该要支持下

@mileszhang2016 mileszhang2016 added the enhancement New feature or request label Jan 12, 2022
@arrow2012
Copy link

动态upstream 这个功能预计什么时候出来? @mileszhang2016

@mileszhang2016
Copy link
Member

@arrow2012
目前一个百度之外的同学在开发支持nacos的组件
初稿在这里: https://github.com/githublaohu/bfe-register
等打磨好后,会放入bfenetworks中。
也非常欢迎更多社区的同学来贡献支持 etcd、zk、eureka 的组件。

@liuqing6767
Copy link
Member

liuqing6767 commented Jan 13, 2022

这个功能实现思路大体上有:

  1. 数据面直接和注册中心对接,这个和现有配置加载逻辑相差太大,暂不考虑
  2. 控制面 和 注册中心对接,保持控制面加载逻辑
    1. 单独提供 probe 来做 注册中心和APISserver之间的数据同步
    2. 在 APIServer中通过对 PoolStorage 进行多态实现

考虑到运维成本、实现成本,建议使用 2.2 方案

@liuqing6767
Copy link
Member

这个issue 的 api-server 版本实现进行中,https://github.com/bfenetworks/api-server/projects/4

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

No branches or pull requests

5 participants