Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9039f1c1
authored
Apr 11, 2020
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
一致性哈希路由策略优化:默认虚拟节点数量调整为100,提高路由的均衡性;
parent
bf8cd9ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
doc/XXL-JOB官方文档.md
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java
doc/XXL-JOB官方文档.md
View file @
9039f1c1
## 《分
布式任务调度平台XXL-JOB》
## 《分
布式任务调度平台XXL-JOB》
...
...
@@ -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
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteConsistentHash.java
View file @
9039f1c1
...
...
@@ -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值)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment