未验证 提交 51df429a 编写于 作者: Q qiaozhanwei 提交者: GitHub

add not worker log and remove worker invalid property (#2784)

* add LoggerServerTest UT

* add LoggerServerTest UT

* add LoggerServerTest UT
add RemoveTaskLogRequestCommandTest UT
add RemoveTaskLogResponseCommandTest

* master select worker filter high load worker #2704

* master select worker filter high load worker #2704

* master select worker filter high load worker #2704

* master select worker filter high load worker #2704

* master select worker filter high load worker #2704

* master select worker filter high load worker #2704

* add not worker log and remove worker invalid property
Co-authored-by: Nqiaozhanwei <qiaozhanwei@analysys.com.cn>
上级 05a0d389
......@@ -81,9 +81,12 @@ public class ExecutorDispatcher implements InitializingBean {
/**
* host select
*/
Host host = hostManager.select(context);
if (StringUtils.isEmpty(host.getAddress())) {
throw new ExecuteException(String.format("fail to execute : %s due to no worker ", context.getCommand()));
throw new ExecuteException(String.format("fail to execute : %s due to no suitable worker , " +
"current task need to %s worker group execute",
context.getCommand(),context.getWorkerGroup()));
}
context.setHost(host);
executorManager.beforeExecute(context);
......
......@@ -70,7 +70,7 @@ public class TaskAckProcessor implements NettyRequestProcessor {
}
/**
* task ack process
* task ack process
* @param channel channel channel
* @param command command TaskExecuteAckCommand
*/
......
......@@ -21,9 +21,6 @@
# worker heartbeat interval
#worker.heartbeat.interval=10
# submit the number of tasks at a time TODO
#worker.fetch.task.num = 3
# only less than cpu avg load, worker server can work. default value -1: the number of cpu cores * 2
#worker.max.cpuload.avg= -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册