Git Product home page Git Product logo

crontabd's Introduction

==Crontabd==

命令支持: ./ncat 127.0.0.1:8765
  add           <id> <key> <sec> <min> <hour> <day> <month> <week> <year>
  del           <id> <key> <sec> <min> <hour> <day> <month> <week> <year>
  begin         <unixtime>
  end           <unixtime>
  log           on | off
  status
  keepalive

id:     数字标识
key:    字符标识
begin:  从设定的时间生效
end:    到设定的时间失效
log:    打开或者关闭日志输出
status: 显示设定
keepalive:启动 monitord 后用于保持高可用


*注:begin 和end 配合使用可以实现主备间无缝切换工作(switch 脚本)

==Monitord==

配置机器列表后与其通信,失败后自动寻找一个可用机器为工作服务器


==并发==
系统自带的 crontab 为进程模型,单机并发<500,并且不能满足秒和年两级需求
crontabd 为 go 编写,并发在50w/s
默认配置为 kafka 输入和输出.
TCP 输入和输出:
    考虑通用性,可自行配置 target 以支持TCP方式向特定主机文本输出
    通过 ncat 可直接向系统add和del 定时项
    这种模式下均以文本形式交互

crontabd'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.