-
Notifications
You must be signed in to change notification settings - Fork 231
load balancing
lbc97 edited this page Jul 13, 2022
·
6 revisions
负载均衡(Load Balance,简称 LB)是高并发、高可用系统必不可少的关键组件,目标是 尽力将网络流量平均分发到多个服务器上,以提高系统整体的响应速度和可用性。
本文介绍spring-cloud-huawei所采用的两个访问策略:RoundRobin和Random。
- RoundRobin 在上游微服务开启如下配置:
spring:
cloud:
servicecomb:
loadbalancer:
rule: RoundRobin
- Random 在上游微服务开启如下配置:
spring:
cloud:
servicecomb:
loadbalancer:
rule: Random
注:未添加该配置项默认是RoundRobin策略,读者可使用该demo自行验证
-
使用Spring Cloud Huawei功能
-
使用服务治理
-
生态集成
-
迁移改造问题
-
配置参考
-
优秀实践
-
常见问题