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