-
Notifications
You must be signed in to change notification settings - Fork 498
负载均衡
Haotian Zhang edited this page Dec 16, 2024
·
5 revisions
北极星默认提供了一些负载均衡能力,Spring Cloud Tencent
为简化开发者使用,统一注入默认的负载均衡器,以便支持基于配置指定默认的负载均衡算法。
Spring Cloud Tencent 提供了另外一种通过配置(spring.cloud.polaris.loadbalancer.strategy
)的方式来达到调整负载均衡策略的方式。可设置的值为:
值 | 负载均衡策略 |
---|---|
roundRobin | 轮询算法。 |
random | 随机算法 |
polarisWeightedRandom | 北极星权重随机算法,通过北极星页面调整权重生效的前提是负载均衡算法是 polarisWeightedRandom |
polarisRingHash | 北极星一致性哈希算法 |
polarisWeightedRoundRobin | **默认负载均衡策略。**北极星权重轮询算法。算法实现:https://github.com/polarismesh/polaris-java/pull/413 |
- 您在使用过程中遇到任何问题,请提 Issue 或者加入我们的开发者群告诉我们,我们会在第一时间反馈
- Spring Cloud Tencent 社区期待您的加入,一个 Star、PR 都是对我们最大的支持
- 项目介绍
- 使用指南
- 最佳实践
- 开发文档
- 学习资料