Giter Site home page Giter Site logo

godistributedcron's Introduction

goDistributedCron

一款简单的分布式任务调度系统,有vue管理后台可以操作

目前完成以下内容,后续会持续完善跟进

master 任务的管理以及一个后台操作管理

主程序初始化相关操作
1. 线程数设置
2. 命令行参数统一解析
2. 配置文件处理
3. 任务事件管理器 任务的列表,保存,删除,杀死等功能实现,任务保存在ETCD中
4. http服务 路由配置 路由逻辑实现
5. 返回值统一处理

worker

抢占任务 任务调度 执行任务
1. 从etcd中读取并把任务job同步到内存中
2. 实现调度模块,基于cron表达式解析并调度job
3. 实现执行模块,并发的执行多个job
4. 实现分布式锁,解决并发惊群调度问题
5. 把执行的日志保存到存储中(目前基于mongo 后期会改成es)

vue管理后台

需要通过 分布式任务调度系统管理平台 vue后台管理项目进行打包生成后 放到本项目根目录的web目录下 打包流程:

  install dependency
  npm install  /  npm install --unsafe-perm

  build for test environment
  npm run build:stage

  build for production environment
  npm run build:prod

todo 后期会逐步加入一些微服务设计 注册发现,负载均衡,链路追踪,日志收集,监控报警等等

系统简单架构图如下:

vue管理后台图如下:

godistributedcron's People

Contributors

menghuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.