Skip to content

Latest commit

 

History

History
71 lines (55 loc) · 2.18 KB

readme-zh.md

File metadata and controls

71 lines (55 loc) · 2.18 KB

English | 简体中文

Build Status codecov Release License

描述

  • 简单快速的通用工作队列
  • 完全兼容beanstalkd协议
  • 用golang完全实现了 Beanstalk 功能
  • 协议说明

里程碑

  • 2020-11-14 : 所有指令全部实现完成,但仅限内存。
  • 2020-11-15 : binlog持久化支持

快速开始

使用go get安装

GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u -v github.com/gostalk/gostalkd

手动编译

make       # 编译
make run   # 运行
make test  # 运行单测
make clean # 清除编译和运行结果

查看支持命令

./gostalkd -h
Usage of ./gostalkd:
  -F    never fsync
  -L string
        set the log level, switch one in (panic, fatal, error, warn, waring, info, debug, trace) (default "warn")
  -V    increase verbosity
  -b string
        write-ahead log directory
  -f int
        fsync at most once every MS milliseconds (default is 50ms);use -f0 for "always fsync" (default 50)
  -l string
        listen on address (default is 0.0.0.0) (default "0.0.0.0")
  -p int
        listen on port (default is 11400) (default 11400)
  -s int
        set the size of each write-ahead log file (default is 10485760);will be rounded up to a multiple of 4096 bytes (default 10485760)
  -u string
        become user and group
  -v    show version information
  -z int
        set the maximum job size in bytes (default is 65535);max allowed is 1073741824 bytes (default 65535)

第三方