870fb4a88c | ||
---|---|---|
.github | ||
bin | ||
conf | ||
db | ||
doc/img | ||
event | ||
log | ||
node | ||
utils | ||
web | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
README_ZH.md | ||
account.go | ||
build.sh | ||
client.go | ||
common.go | ||
errors.go | ||
group.go | ||
id.go | ||
job.go | ||
job_log.go | ||
mdb.go | ||
node.go | ||
noticer.go | ||
once.go | ||
proc.go | ||
release.sh | ||
version.go |
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(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
- 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