提交 b2ff5bed 编写于 作者: 许雪里's avatar 许雪里

轮训路由策略优化,修复小概率下并发问题;

上级 9c9768d8
......@@ -1996,7 +1996,8 @@ data: post-data
- 6.2、日志组件逻辑调整:日志组件改为通过 XxlJobContent 获取任务上下文并匹配写入对应日志文件;
- 7、页面redirect跳转后https变为http问题修复;
- 8、调度线程连接池优化,修复连接有效性校验超时问题。
- 9、[规划中]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等;
- 9、轮训路由策略优化,修复小概率下并发问题;
- 10、[规划中]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等;
### 7.32 版本 v2.3.0 Release Notes[规划中]
- 1、[规划中]多数据库支持,DAO层通过JPA实现,不限制数据库类型;
......
......@@ -26,8 +26,8 @@ public class ExecutorRouteRound extends ExecutorRouter {
}
AtomicInteger count = routeCountEachJob.get(jobId);
// 初始化时主动Random一次,缓解首次压力
if (count == null || count.get() > 1000000) {
// 初始化时主动Random一次,缓解首次压力
count = new AtomicInteger(new Random().nextInt(100));
} else {
// count++
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册