Skip to content

Commit

Permalink
vault backup: 2025-01-07 20:18:39
Browse files Browse the repository at this point in the history
Affected files:
docs/09后端(框架与中间件)/01后端框架/Dubbo/Q:Dubbo负载均衡策略?.md
  • Loading branch information
givedrug committed Jan 7, 2025
1 parent 3cf8d79 commit cc34d64
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

(1)RandomLoadBalance:随机负载均衡。随机的选择一个。是Dubbo的**默认**负载均衡策略。

(2)RoundRobinLoadBalance:轮询负载均衡。轮询选择一个。

(3)LeastActiveLoadBalance:最少活跃调用数,相同活跃数的随机。活跃数指调用前后计数差。使慢的 Provider 收到更少请求,因为越慢的 Provider 的调用前后计数差会越大。

(4)ConsistentHashLoadBalance:一致性哈希负载均衡。相同参数的请求总是落在同一台机器上。

0 comments on commit cc34d64

Please sign in to comment.