定时任务管理系统

目录

  • cronsun

  • Alternatives

    • Cronicle

    • Airflow

    • gocron

    • Cronitor

    • Cronhub

cronsun

mongo: 27017 etcd: 2379

  • 下载cronsun
cd ~/Downloads/cronsun-v0.3.5

# 任务节点
./cronnode -conf conf/base.json

# 管理节点
./cronweb -conf conf/base.json

curl http://127.0.0.1:7079/ui/
  • 后台任务

如果后台运行程序 可以使用nodup或Supervisor

nohup sudo ./cronnode -conf conf/base.json >> /tmp/cronsun-node.log 2>&1 &

nohup sudo ./cronweb -conf conf/base.json >> /tmp/cronsun-web.log 2>&1 &

jobs -l
# [1]  - 97669 running    nohup sudo ./cronnode -conf conf/base.json >> /tmp/cronsun-node.log 2>&1
# [2]  + 97680 running    nohup sudo ./cronweb -conf conf/base.json >> /tmp/cronsun-web.log 2>&1
  • 新建任务
任务名称
cronsun-test

任务脚本
touch /tmp/cronsun-test

用户
root

定时器
0 50,51 10 * * *
  • nginx
server {
    listen 80;
    server_name cronsun.com;

    location / {
        proxy_pass http://localhost:7079/;
    }
}

Alternatives

Cronicle

Open Source, Star较少

  • Master
curl -s https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | sudo node

vim /opt/cronicle/conf/config.json
# "web_socket_use_hostnames": true,

sudo /opt/cronicle/bin/control.sh setup

sudo /opt/cronicle/bin/control.sh start

curl http://localhost:3012/

# Scheduled Event
/usr/local/bin/mysqldump -uroot -p123456 --databases db1 > /tmp/db1.sql
  • Nginx

Just installed Cronicle with Node v8 LTS

Airflow

Open Source, But Heavyweight Solution

gocron

Open Source, 国人开发

docker run --name gocron -p 5920:5920 -d ouqg/gocron

curl http://localhost:5920/

Cronitor

Commerce

Cronhub

Commerce

参考

  • 34 best open source job scheduler projects

  • 替代crontab,统一定时任务管理系统cronsun简介

  • 在线Crontab表达式执行时间验证

  • Linux 技巧:让进程在后台可靠运行的几种方法

你可能感兴趣的:(定时任务管理系统)