dorylus

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2016 License: MIT Imports: 12 Imported by: 0

README

dorylus

Build Status

A golang job server

#这是什么?

这是一套分布式的cronjob 管理系统,支持manager机器基于负载和进程运行状态手动&自动调节分配运行的worker。

#快速开始

  1. 先安装gopm
  2. go get -u github.com/gpmgo/gopm
  3. 确保你的GOPATH设置的环境变量可以调用gopm。
  4. gopm build
  5. ./dorylus

#安装

确保依赖,首先下载无闻大大的gopm包,执行
gopm install
然后 gopm run main.go 就能运行了。
当然你也可以go build 生成执行文件 dorylus, 执行 ./dorylus ,
请确保你的配置文件已经配好。

#使用说明

##配置 修改conf/{环境}.conf,这里以开发环境dev为例

数据库的链接配置:

mysql.conn = "{yourusername}:{youpassword}@/webcron?charset=utf8" mysql.prefix = "t_"

服务开启的端口:

tcp.port = ":8989"

最大运行进程数:

WorkPollSize = 10

这个只是一个worker,属于dorylus的执行者,管理者是另外的一个项目dorylus-queen

#进度

  • 2016-03-15 Alpha设计完毕
  • 2016-03-18 worker框架代码提交
  • 2016-03-23 worker 完善
  • 2016-03-27 worker unit test
  • 2016-04-07 document
  • 2016-11-07 dorylus-cli

基于的项目

  1. beego的config
  2. gotcp
  3. webcron的jobs模块
  4. cron

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
This library implements a cron spec parser and runner.
This library implements a cron spec parser and runner.
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL