【无标题】

Spring Cloud Gateway 动态配置

Spring Cloud Gateway 的route路由配置需要能够灵活添加修改才有使用价值。

在线系统发布策略

Online project publishing generally has the following schemes:

  1. Downtime release
    This kind of release is usually released at night or during major version upgrade. Because it needs to be stopped, now everyone is studying Devops scheme.

  2. Blue green deployment
    Blue green deployment requires two identical environments. A new version of the environment, an old version of the environment, switches and rolls back through load balancing in order to reduce the service stop time.

  3. Rolling deployment
    Rolling deployment is to start a new version, then stop an old version, then start a new version, and then stop an old version until the upgrade is completed. The default upgrade scheme based on k8s is rolling deployment.

  4. Grayscale release
    Gray publishing is also called Canary publishing. In gray publishing, routing weights are often set according to users. For example, 90% of users keep using the old version, and 10% of users try the new version. Different versions of applications coexist and are often used together with A/B tests to test and select multiple schemes.

多实例部署时配置刷新策略

  1. 要保持每个实例配置的稳定, 例如实例重启后, 配置不改变。
  2. 多实例配置要保持一致。
  3. 网关实例要部署在Openshift平台上, 配置获取不能从数据库获取。

参考网址:

https://docs.vmware.com/en/VMware-Spring-Cloud-Gateway-for-Kubernetes/index.html

https://www.jianshu.com/p/6ef55cfb2b81

https://www.tutorialspoint.com/spring_cloud/spring_cloud_gateway.htm

https://github.com/zulffaza/Spring-Cloud-Gateway-Routes-from-Database

https://huaweicloud.csdn.net/63311441d3efff3090b518a9.html?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Eactivity-1-86557165-blog-127522710.pc_relevant_vip_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Eactivity-1-86557165-blog-127522710.pc_relevant_vip_default&utm_relevant_index=2

https://blog.csdn.net/lazasha/article/details/84942823?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7ERate-2-84942823-blog-127522710.pc_relevant_vip_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7ERate-2-84942823-blog-127522710.pc_relevant_vip_default&utm_relevant_index=3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值