| 程序包 | 说明 |
|---|---|
| com.xxl.rpc.remoting.invoker.reference | |
| com.xxl.rpc.remoting.invoker.route | |
| com.xxl.rpc.remoting.invoker.route.impl |
| 类和说明 |
|---|
| LoadBalance |
| 类和说明 |
|---|
| LoadBalance |
| XxlRpcLoadBalance
分组下机器地址相同,不同JOB均匀散列在不同机器上,保证分组下机器分配JOB平均;且每个JOB固定调度其中一台机器;
a、virtual node:解决不均衡问题
b、hash method replace hashCode:String的hashCode可能重复,需要进一步扩大hashCode的取值范围
|
| 类和说明 |
|---|
| XxlRpcLoadBalance
分组下机器地址相同,不同JOB均匀散列在不同机器上,保证分组下机器分配JOB平均;且每个JOB固定调度其中一台机器;
a、virtual node:解决不均衡问题
b、hash method replace hashCode:String的hashCode可能重复,需要进一步扩大hashCode的取值范围
|
Copyright © 2019. All rights reserved.