Go to file
miraclesu 61230937ab Update README 2017-05-24 18:07:53 +08:00
.github Add issue template 2017-05-18 11:38:10 +08:00
bin pkg: use uber zap as default log 2017-05-12 16:47:13 +08:00
conf fixed issues 1 2017-05-18 16:55:09 +08:00
db pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
doc/img Update README 2017-05-15 17:48:50 +08:00
event pkg: 替换 event 包 2017-05-10 20:14:16 +08:00
log pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
node Fix travis fail 2017-05-18 15:29:58 +08:00
utils pkg: 替换 util 包 2017-05-10 17:01:52 +08:00
web pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
.editorconfig 检查用作key的id和名称,添加获取活动节点的接口 2017-05-09 17:52:45 +08:00
.gitignore Update README 2017-05-15 17:48:50 +08:00
.travis.yml Fix travis fail 2017-05-18 15:29:58 +08:00
LICENSE Initial commit 2017-05-09 17:46:46 +08:00
README.md Update README 2017-05-24 18:07:53 +08:00
README_ZH.md Update README 2017-05-24 18:07:53 +08:00
build.sh fix build script 2017-05-16 10:02:13 +08:00
client.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
common.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
errors.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
group.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
id.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
job.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
job_log.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
mdb.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
node.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
noticer.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
once.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
proc.go pkg: remove sunteng log 2017-05-12 15:38:50 +08:00
release.sh Add releash script 2017-05-16 16:32:50 +08:00
version.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00

README.md

cronsun Build Status

Note: The UI is in Chinese, English may be in the future.

cronsun is a distributed cron-style job system. It's similar with crontab on stand-alone *nix.

简体中文

Purpose

The goal of this project is to make it much easier to manage jobs on lots of machines and provides high availability. cronsun is different from Azkaban, Chronos, Airflow.

Features

  • Easy manage jobs on multiple machines
  • Managemant panel
  • Mail service

Architecture

                                                [web]
                                                  |
                                     --------------------------
           (add/del/update/exec jobs)|                        |(query job exec result)
                                   [etcd]                 [mongodb]
                                     |                        ^
                            --------------------              |
                            |        |         |              |
                         [node.1]  [node.2]  [node.n]         |
             (job exec fail)|        |         |              |
          [send mail]<-----------------------------------------(job exec result)

Security

cronsun support security with security.json config. When opne=true job command is only allow local files with special extension on the node.

{
    "open": true,
    "#users": "allowed execution users",
    "users": [
        "www", "db"
    ],
    "#ext": "allowed execution file extension",
    "ext": [
        ".cron.sh", ".cron.py"
    ]
}

Getting started

Setup / installation

Install from binary releases, download and unzip.

Or build from source, require go >= 1.7+

go get -u github.com/shunfei/cronsun
cd $GOPATH/src/github.com/shunfei/cronsun
sh build.sh

Run

  1. Install MongoDB
  2. Install etcd3
  3. Modify config in conf dir
  4. Start Node: ./cronnode -conf conf/base.json, start Web: ./cronweb -conf conf/base.json
  5. Opne http://127.0.0.1:7079/ui/ with the browser

Screenshot

Brief:

Exec result:

Job:

Node:

Credits

cron is base on robfig/cron