loadbalance
2021-04-22 11:19:32 0 举报
常见负载均衡策略
作者其他创作
大纲/内容
10 request
SrvA
uid: 10003hash(uid) mod 3 = 01 request
uid: 10001hash(uid) mod 3 = 110 reqeust
hash(uid) mod 3 = 0
hash(uid) mod 3 = 2
API 网关
hash(uid) mod 3 = 1
5 request
2 request
一致性Hash
avg(RTT)=50
172.1.1.1:8080Weight:5
uid: 1000110 request
uid: 1000230 request
172.1.1.3.8080weight:3
172.1.1.2.8080Weight:2
3 request
uid: 10002hash(uid) mod 3 = 230 request
avg(RTT)=20
平均延迟时间加权轮询
avg(RTT)=30
3 reuest
uid: 100031 request
加权轮询
0 条评论
下一页