Skip to content

Commit

Permalink
Fixed #195.
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Feb 20, 2017
1 parent 50a9db6 commit 24e0ecd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions elastic-job-doc/content/post/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ weight=1

# Release Notes

## 2.0.6-SNAPSHOT

### 新功能

1. [ISSUE #195](https://github.com/dangdangdotcom/elastic-job/issues/195) elastic-job-lite:主节点增加reconcile线程任务,修复分片不一致等分布式相关一致性问题。

## 2.0.5

### 缺陷修正
Expand Down
6 changes: 5 additions & 1 deletion elastic-job-doc/content/post/user_guide/lite/dev_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ echo sharding execution context is $*
|disabled |boolean||false| 作业是否禁止启动<br />可用于部署作业时,先禁止启动,部署结束后统一启动 |
|overwrite |boolean||false| 本地配置是否可覆盖注册中心配置<br />如果可覆盖,每次启动作业都以本地配置为准 |
|jobProperties |String || | 作业定制化属性,目前支持`job_exception_handler``executor_service_handler`,用于扩展异常处理和自定义作业处理线程池 |
|event-trace-rdb-data-source |String || | 作业事件追踪的数据源`Bean`引用|
|event-trace-rdb-data-source |String || | 作业事件追踪的数据源`Bean`引用 |
|reconcile-interval-minutes |int ||-1 | 修复作业服务器不一致状态服务调度间隔分钟数 |

#### job:dataflow命名空间属性详细说明

Expand Down Expand Up @@ -397,3 +398,6 @@ public class JobMain {
}
}
```

### 4. 修复作业服务器不一致状态
`elastic-job`在配置中提供了`reconcileIntervalMinutes`设置修复状态服务执行间隔分钟数,用于修复作业服务器不一致状态,默认为-1不启用。
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
<input type="number" id="monitorPort" name="monitorPort" class="form-control" data-toggle="tooltip" data-placement="bottom" title="抓取作业注册信息监听服务端口。配置为-1表示不启用监听服务。" />
</div>

<label for="reconcileIntervalMinutes" class="col-sm-2 control-label">作业服务器状态修复周期</label>
<label for="reconcileIntervalMinutes" class="col-sm-2 control-label">作业服务器状态修复间隔分钟数</label>
<div class="col-sm-2">
<input type="number" id="reconcileIntervalMinutes" name="reconcileIntervalMinutes" class="form-control" data-toggle="tooltip" data-placement="bottom" title="修复错误状态的作业服务器扫描修复周期。配置为-1表示不启用修复动作。" />
<input type="number" id="reconcileIntervalMinutes" name="reconcileIntervalMinutes" class="form-control" data-toggle="tooltip" data-placement="bottom" title="修复错误状态的作业服务器扫描修复间隔分钟数。配置为-1表示不启用修复动作。" />
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ public Builder overwrite(final boolean overwrite) {
}

/**
* 设置监视作业服务器状态的reconcile线程执行间隔分钟数.
* 设置修复作业服务器不一致状态服务执行间隔分钟数.
*
* <p>
* 每隔一段时间监视作业服务器的状态,如果不正确则重新分片。
* </p>
*
* @param reconcileIntervalMinutes reconcile线程执行间隔分钟数
* @param reconcileIntervalMinutes 修复作业服务器不一致状态服务执行间隔分钟数
*
* @return 作业配置构建器
*/
Expand Down

0 comments on commit 24e0ecd

Please sign in to comment.