A Distributed, Fault-Tolerant Cron-Style Job System.
@at 2018-09-30 14:18:30
. Like linux command at
, run job at special time once.
更详细的中文说明见v0.3.4更新说明
cronweb
& all cronnode
;Reporter
csctl node --help
to get more details)cronweb
& cronnode
;"PIDFile": "/tmp/cronsun/cronnode_pid",
to your base.json, if you are looking for a pid file(more details)!0.3.0pre
v0.3.1
;csctl upgrade --prever=0.3.0 --conf={path/to/base.json}
0.2.3
v0.3.1
;添加命令行工具 csctl 改用 UUID 代替 IP 作为节点ID来标识一个节点 界面改用 hostname 代替 IP UI 细节改善
修复分页组件 bug 修复更改分组引起节点 panic 的问题 修复定时器中节点规则的 bug 修复单机单进程类型任务可能不按时执行的 bug (by @shayin) 修复 etcd 部分配置字段不生效问题 修复 smtp 连接关闭问题 修复 event 包空事件处理
# 请将 --conf 修改为你自己保存的 base.json 文件的路径
# --file 为备份文件路径,会自动加上 .zip 后缀,这里不需要写后缀
csctl backup --conf={/path/to/base.json} --dir=./ --file=cronsun_data
base.json
新增配置项 UUIDFile
,通过指定一个路径用于保存节点 UUID,UUID 在新版本 cronnode
首次启动生成,并且一直不会改变,是节点的唯一标识,请不要修改它。请保证程序有足够权限写入文件。
cronnode
# 在启动所有 cronnode 节点之后,各节点会生成 UUID,UUID 和 IP 一一映射
# 此命令会把任务/分组/日志的 IP 进行替换为 UUID
csctl upgrade --conf={/path/to/base.json} --prever=0.2.3
cronweb
Add new log configuration to web-node's conf/files/web.json
"#comment": "Delete the expired log (which store in mongodb) periodically",
"LogCleaner": {
"#comment": "if EveryMinute is 0, the LogCleaner will not run",
"EveryMinute": 0,
"ExpirationDays": 3
}
Add a none empty configuration PIDFile
to base.json
to generate a pid file, just work on cronnode
check full config sample.
cronnode
bin file in all the nodes, and restart.cronweb
bin file in web node, and restart.Update this release for fix #24