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
5368b691
authored
Feb 26, 2019
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
执行器优雅停机优化
parent
fe97e510
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
doc/XXL-JOB官方文档.md
xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java
doc/XXL-JOB官方文档.md
View file @
5368b691
## 《分
布式任务调度平台XXL-JOB》
## 《分
布式任务调度平台XXL-JOB》
...
...
@@ -1430,6 +1430,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
16、LRU路由更新不及时问题修复;
-
17、任务失败告警邮件发送逻辑优化;
-
18、调度日志排序逻辑调整为按照调度时间倒序,兼容TIDB等主键不连续日志存储组件;
-
19、执行器优雅停机优化;
-
19、
[
迭代中
]
任务线程隔离:
-
执行器测异步响应,不存在阻塞不需要隔离;
-
调度中心共用单一调度线程池,可能导致调度阻塞需要线程隔离;调度线程池拆分为Fast/Slow两个,针对调度较慢的执行器地址请求,降级使用Slow线程池;考虑是否可以任务级隔离线程池;
...
...
xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java
View file @
5368b691
...
...
@@ -69,7 +69,7 @@ public class XxlJobExecutor {
// init logpath
XxlJobFileAppender
.
initLogPath
(
logPath
);
// init admin-client
// init
invoker,
admin-client
initAdminBizList
(
adminAddresses
,
accessToken
);
...
...
@@ -103,6 +103,9 @@ public class XxlJobExecutor {
// destory executor-server
stopRpcProvider
();
// destory invoker
stopInvokerFactory
();
}
...
...
@@ -139,6 +142,14 @@ public class XxlJobExecutor {
}
}
}
private
void
stopInvokerFactory
(){
// stop invoker factory
try
{
XxlRpcInvokerFactory
.
getInstance
().
stop
();
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
}
public
static
List
<
AdminBiz
>
getAdminBizList
(){
return
adminBizList
;
}
...
...
@@ -202,12 +213,6 @@ public class XxlJobExecutor {
}
private
void
stopRpcProvider
()
{
// stop invoker factory
try
{
XxlRpcInvokerFactory
.
getInstance
().
stop
();
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
// stop provider factory
try
{
xxlRpcProviderFactory
.
stop
();
...
...
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