3
Cronsun:任务计划统一集中管理系统设计与分析
source link: https://pandaychen.github.io/2022/06/20/A-GOALNG-CRONSUN-ANALYSIS/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
0x00 开篇
cronsun 是一个分布式任务系统,单个节点和 Linux 机器上的 crontab
类似,目的是解决多台 Linux 机器上 crontab 任务管理不方便的问题,同时提供任务高可用的支持(当某个节点死机的时候可以自动调度到正常的节点执行),此外,有页面胚子及告警邮件支持等。
本文分析下其实现的思路,之前已有相关文章:
0x01 cronsun架构
[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)
笔者阅读过的分布式crontab实现,几乎都是与该架构类似;
0x02 组件介绍
- MongoDB
核心代码分析
0x03 总结
0x04 参考
Related Issues not found
Please contact @pandaychen to initialize the comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK