Giter Club home page Giter Club logo

paulzhu8597 / tbschedule-wed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lujiang-wed/wed-job

0.0 2.0 0.0 84 KB

基于TBSchedule官方3.3.3.2的改良版。主要在官方原版的基础上优化了以下几点: 1、任务项状态管理全部改为顺序操作,牺牲一定的并发效能提升稳定性; 2、解决在以往的实践使用中(大量job共用一个调度中心切job执行频繁场景)官方版偶尔出现任务不能正确停止与注销,造成任务项死循环执行,CPU满负载且产生大量脏日志的问题; 3、优化在ZooKeeper集群不稳定时,策略与任务的注册与反注册。

License: GNU General Public License v2.0

Java 100.00%

tbschedule-wed's Introduction

tbschedule-wed

基于TBSchedule官方3.3.3.2的改良版。主要在官方原版的基础上优化了以下几点: 1、任务项状态管理全部改为顺序操作,牺牲一定的并发效能提升稳定性; 2、解决在以往的实践使用中(大量job共用一个调度中心切job执行频繁场景)官方版偶尔出现任务不能正确停止与注销,造成任务项死循环执行,CPU满负载且产生大量脏日志的问题; 3、优化在ZooKeeper集群不稳定时,策略与任务的注册与反注册。

一、基础用法与官方版一致,新手可以参考:http://geek.csdn.net/news/detail/65738

DIFF点:

1、job实现器追加pageNum参数(根据eachFetchDataNum和FetchCount计算得出)

example:

IScheduleTaskDeal.List selectTasks(String taskParameter, String ownSign, int taskItemNum, List taskItemDefines, int eachFetchDataNum, int pageNum) throws Exception;   作用: a)原版tbs的取数是一直前进的,这可能导致某些不允许出现fail的应用场景下,处理fail后task会积压直到第二轮调度开始fatchCount内部重置以后才能再次被处理。加入pageNum参数后,用户可自行实现这样一道补偿机制:自行修改pageNum强制任务从头开始执行而不用打断job执行。

 b)对于要求需要知道数据startIndex以及endIndex场景时,pageNum的加入可以免去totalCount查询操作。

tbschedule-wed's People

Watchers

James Cloos avatar  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.