Skip to content

diditaxi/beanstalkd

 
 

Repository files navigation

This is beanstalkd, a fast, general-purpose work queue.
See http://kr.github.io/beanstalkd/ for general info.


QUICK START

    $ make
    $ ./beanstalkd


also try,

    $ ./beanstalkd -h
    $ ./beanstalkd -VVV
    $ make CFLAGS=-O2
    $ make CC=clang
    $ make check
    $ make install
    $ make install PREFIX=/usr

Requires Linux (2.6.17 or later), Mac OS X, or FreeBSD.
See doc/protocol.txt for details of the network protocol.

Uses ronn to generate the manual.
See http://github.com/rtomayko/ronn.


SUBDIRECTORIES

adm	files useful for system administrators
ct	testing tool; see https://github.com/kr/ct
doc	documentation
pkg	miscelaneous files for packagers


TESTS

Unit tests are in test*.c. See https://github.com/kr/ct for
information on how to write them.


Copyright © 2007-2013 the authors of beanstalkd.
Copyright in contributions to beanstalkd is retained
by the original copyright holder of each contribution.
See file LICENSE for terms of use.

EXTRA FEATURES

ID_BEGIN customization: provide the customization of where job id begins from, which is mainly for beanstalkd proxy to sharding jobs. The begin id config is stored in "_didi_config_" tube, you should first post command "use _didi_config_", then "load-config" to expilicitly ask beanstalkd to load begin id.  As if the beanstalkd is newly created without config info, it will reply "NOT_FOUND". You should post a config to job into "_didi_config" tube, such as "put 1 1 60 5\r\n10000"."10000" means id begins from "10000". Then post "load-config" again to  be effective. It will reply "ID_BEGIN 10000" if it is successful.