From 9039f1c1877c9a8462c92e163b2e706d326a9fe6 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 11 Apr 2020 17:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=E5=93=88=E5=B8=8C?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=AD=96=E7=95=A5=E4=BC=98=E5=8C=96=EF=BC=9A?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=99=9A=E6=8B=9F=E8=8A=82=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E8=B0=83=E6=95=B4=E4=B8=BA100=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E8=B7=AF=E7=94=B1=E7=9A=84=E5=9D=87=E8=A1=A1=E6=80=A7?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB官方文档.md | 3 ++- .../admin/core/route/strategy/ExecutorRouteConsistentHash.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index 929c9b8b..46a698dd 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1756,7 +1756,8 @@ data: post-data - 19、任务手动执行一次的时候,支持指定本次执行的机器地址,为空则从执行器获取 - 20、任务结果丢失处理:调度记录停留在 "运行中" 状态超过10min,且对应执行器心跳注册失败不在线,则将本地调度主动标记失败; - 21、执行备注消息长度限制,修复数据超长无法存储导致导致回调失败的问题; -- 22、[迭代中]调度中心与执行器通讯规范为双向restful,方便跨语言,以及第三方执行器实现;通讯组件xxl-rpc方案调整为Jetty+Gson方案; +- 22、一致性哈希路由策略优化:默认虚拟节点数量调整为100,提高路由的均衡性; +- 23、[迭代中]调度中心与执行器通讯规范为双向restful,方便跨语言,以及第三方执行器实现;通讯组件xxl-rpc方案调整为Jetty+Gson方案; ### TODO LIST diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java index 72e8118f..41ac671c 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java @@ -19,7 +19,7 @@ import java.util.TreeMap; */ public class ExecutorRouteConsistentHash extends ExecutorRouter { - private static int VIRTUAL_NODE_NUM = 5; + private static int VIRTUAL_NODE_NUM = 100; /** * get hash code on 2^32 ring (md5散列的方式计算hash值)