apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.45k stars 2.94k forks source link

How to deploy shenyu gateway in HA multi-clusters? #5388

Open wljin321 opened 10 months ago

wljin321 commented 10 months ago

Question

shenyu如何进行高可用的部署,目前我尝试启动2个admin 2个bootstrap 共用一个数据库,有一些问题. 采用的是nacos数据同步,也同时启用了dubbo插件,2个admin服务都走了同样的逻辑,通过订阅nacos里的服务和配,重复覆盖mysql里的配置.

loongs-zhang commented 10 months ago

For admin, please check https://github.com/apache/shenyu/issues/4881 ; For bootstrap, you can deploy multiple nodes in the gateway using the same registry.

MingJunDuan commented 10 months ago

shenyu admin多节点部署是个问题

MingJunDuan commented 10 months ago

数据同步一致性

kimmking commented 9 months ago

A new tool for syncing data from different clusters is a good idea. Can you provider a task in GSoC2024 in shenyu?

loongs-zhang commented 9 months ago

The data has been stored in the database, so canel is enough for the migration between different admin clusters.

For gsoc 2024, I'd like to provide KitexPulgin or RpcxPlugin task. ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年01月27日 21:51 | | 收件人 | apache/shenyu @.> | | 抄送人 | dragon-zhang @.>, Comment @.> | | 主题 | Re: [apache/shenyu] 分布式高可用网关部署问题 (Issue #5388) |

A new tool for syncing data from different clusters is a good idea. Can you provider a task in GSoC2024 in shenyu?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

kimmking commented 9 months ago

Biz data syncing in middleware nodes should not depend on db tools. I still think it make sense for this feature, such as Nacos-Sync.