You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Doflatango 5fc21c2f7c
Update screenshot(en) of dashboard page
7 years ago
.github Update issue template 8 years ago
bin Fix dir permission 7 years ago
conf Use UUID instead of machine ID 7 years ago
db use machine id instead of ip 7 years ago
doc/img Update screenshot(en) of dashboard page 7 years ago
event bugfix: emit nil event 7 years ago
log Added login and accounts manager modules 8 years ago
node Use UUID instead of machine ID 7 years ago
utils remove useless code 7 years ago
web Use UUID instead of machine ID 7 years ago
.editorconfig 检查用作key的id和名称,添加获取活动节点的接口 8 years ago
.gitignore use machine id instead of ip 7 years ago
.travis.yml Use UUID instead of machine ID 7 years ago
LICENSE Update LICENSE 7 years ago
README.md Update README.md 7 years ago
README_ZH.md Update README and version number. 7 years ago
account.go Added login and accounts manager modules 8 years ago
build.sh embedded static assets 7 years ago
client.go Fix etcd configuration json fields 7 years ago
common.go csctl: for cmd tools, watch configuration files is unnecessary. 7 years ago
errors.go pkg: mv models to cronsun 8 years ago
group.go remove github.com/coreos/etcd/mvcc/mvccpb 7 years ago
id.go pkg: mv models to cronsun 8 years ago
job.go Merge branch 'master' of github.com:shunfei/cronsun into develop 7 years ago
job_log.go use machine id instead of ip 7 years ago
mdb.go pkg: mv models to cronsun 8 years ago
node.go use machine id instead of ip 7 years ago
noticer.go Fix smtp close error 7 years ago
once.go pkg: mv models to cronsun 8 years ago
proc.go pkg: remove sunteng log 8 years ago
release.sh Add releash script 8 years ago
version.go use machine id instead of ip 7 years ago

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 extensions",
    "ext": [
        ".cron.sh", ".cron.py"
    ]
}

Getting started

Setup / installation

Install from binary latest release

Or build from source (feature/glide), require go >= 1.9+, glide

go get -u github.com/shunfei/cronsun
cd $GOPATH/src/github.com/shunfei/cronsun
git checkout feature/glide
glide update
sh build.sh

Run

  1. Install MongoDB
  2. Install etcd3
  3. Open and update Etcd(conf/etcd.json) and MongoDB(conf/db.json) configurations
  4. Start cronnode: ./cronnode -conf conf/base.json, start cronweb: ./cronweb -conf conf/base.json
  5. Open http://127.0.0.1:7079 in browser

Screenshot

Brief:

Exec result:

Job:

Node:

Credits

cron is base on robfig/cron