mirror of https://github.com/shunfei/cronsun
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.
miraclesu
7f5c0f5531
|
8 years ago | |
---|---|---|
.github | 8 years ago | |
bin | 8 years ago | |
conf | 8 years ago | |
db | 8 years ago | |
doc/img | 8 years ago | |
event | 8 years ago | |
log | 8 years ago | |
node | 8 years ago | |
utils | 8 years ago | |
web | 8 years ago | |
.editorconfig | ||
.gitignore | 8 years ago | |
.travis.yml | 8 years ago | |
LICENSE | ||
README.md | 8 years ago | |
README_ZH.md | 8 years ago | |
account.go | 8 years ago | |
build.sh | 8 years ago | |
client.go | 8 years ago | |
common.go | 8 years ago | |
errors.go | 8 years ago | |
group.go | 8 years ago | |
id.go | 8 years ago | |
job.go | 8 years ago | |
job_log.go | 8 years ago | |
mdb.go | 8 years ago | |
node.go | 8 years ago | |
noticer.go | 8 years ago | |
once.go | 8 years ago | |
proc.go | 8 years ago | |
release.sh | 8 years ago | |
version.go | 8 years ago |
README.md
cronsun
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
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 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
- Install MongoDB
- Install etcd3
- Modify config in
conf
dir - Start Node:
./cronnode -conf conf/base.json
, start Web:./cronweb -conf conf/base.json
- Opne
http://127.0.0.1:7079/ui/
with the browser
Screenshot
Brief:
Exec result:
Job:
Node:
Credits
cron is base on robfig/cron