Go to file
Doflatango b542d52b86 csctl: for cmd tools, watch configuration files is unnecessary. 2018-02-23 17:07:57 +08:00
.github Update issue template 2017-05-24 18:19:28 +08:00
bin csctl: for cmd tools, watch configuration files is unnecessary. 2018-02-23 17:07:57 +08:00
conf csctl: for cmd tools, watch configuration files is unnecessary. 2018-02-23 17:07:57 +08:00
db pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
doc/img Add files via upload 2017-05-27 16:47:29 +08:00
event New feature: log cleaner. 2017-12-07 15:37:01 +08:00
log Added login and accounts manager modules 2017-06-29 15:15:33 +08:00
node Fixed test TestLocalTimezone: test some time may fail due to goroutine scheduling uncertainly 2017-11-30 10:37:41 +08:00
utils remove useless code 2017-10-17 18:19:00 +08:00
web Build static assets. 2017-12-20 10:50:21 +08:00
.editorconfig 检查用作key的id和名称,添加获取活动节点的接口 2017-05-09 17:52:45 +08:00
.gitignore embedded static assets 2017-08-30 14:56:50 +08:00
.travis.yml etcd client v3 require go >= 1.9 2017-09-14 10:17:54 +08:00
LICENSE Update LICENSE 2017-10-25 21:19:52 -05:00
README.md Update README and version number. 2017-10-24 16:03:55 +08:00
README_ZH.md Update README and version number. 2017-10-24 16:03:55 +08:00
account.go Added login and accounts manager modules 2017-06-29 15:15:33 +08:00
build.sh embedded static assets 2017-08-30 14:56:50 +08:00
client.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
common.go csctl: for cmd tools, watch configuration files is unnecessary. 2018-02-23 17:07:57 +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 New feature: log cleaner. 2017-12-07 15:37:01 +08:00
job_log.go Add line chart in Dash page to display job executeds in past 7 days 2017-12-12 15:38:34 +08:00
mdb.go pkg: mv models to cronsun 2017-05-12 14:48:24 +08:00
node.go Rename function, fix #36 2017-10-18 16:38:09 +08:00
noticer.go Rename function, fix #36 2017-10-18 16:38:09 +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 New feature: log cleaner. 2017-12-07 15:37:01 +08:00

README.md

cronsun Build Status

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
  • Multi-language support
  • Simple authentication and accounts manager(default administrator email and password: admin@admin.com/admin)

Status

cronsun has been tested in production for years on hundreds of servers. Although the current version is not release as an stable version, but we think it is completely available for the production environment. We encourage you to try it, it's easy to use, see how it works for you. We believe you will like this tool.

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 open=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 latest release

Or build from source, require go >= 1.9+

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