Tagged: queue RSS

  • bixuan 17:46 on 2010 年 11 月 21 日 链接地址 | 回复
    Tags: , queue   

    安装beanstalkd(队列)

    官网:http://kr.github.com/beanstalkd/
    注意:需要先安装libevent,另外可以在:http://wiki.github.com/kr/beanstalkd/client-libraries 这里找到php客户端,目前只有php class。

    1、下载

    wget -c http://xph.us/dist/beanstalkd/beanstalkd-1.4.6.tar.gz
    

    2、编译

    tar zxvfp beanstalkd-1.4.6.tar.gz
    cd beanstalkd-1.4.6
    ./configure --prefix=/opt/app/beanstalkd --with-event=/opt/app/libevent/
    make && make install
    

    3、启动
    /opt/app/beanstalkd/bin/beanstalkd -d -b /opt/app/beanstalkd/db/ -f 60000 -l 192.168.4.75 -p 11300 -u nobody
    和memcached非常类似
    具体参数如下:

    Options:
     -d       detach
     -b DIR   binlog directory (must be absolute path if used with -d)
     -f MS    fsync at most once every MS milliseconds (use -f 0 for "always fsync")
     -F       never fsync (default)
     -l ADDR  listen on address (default is 0.0.0.0)
     -p PORT  listen on port (default is 11300)
     -u USER  become user and group
     -z BYTES set the maximum job size in bytes (default is 65535)
     -s BYTES set the size of each binlog file (default is 10485760)
     -v       show version information
     -h       show this help
    

    4、相关文档

    http://wiki.github.com/kr/beanstalkd/faq

    http://adam.heroku.com/past/2010/4/24/beanstalk_a_simple_and_fast_queueing_backend/

    http://abulman.co.uk/presentations/Beanstalkd-2010-05-06/

     
  • bixuan 10:13 on 2008 年 08 月 07 日 链接地址 | 回复
    Tags: GPL, , , queue, tutorial   

    Q4M 

    What is Q4M?

    Q4M (Queue for MySQL) is a message queue licensed under GPL that works as a pluggable storage engine of MySQL 5.1, designed to be robust, fast, flexible. The development started in late December of 2007, and although it is very primitive, operates quite swiftly.
    To start using Q4M, download either a binary or source distribution from the install page, and follow the installation instructions. A small tutorial is also avialable. You may use SQL to access Q4M queues, or there is a wrapper module available for perl (Queue::Q4M).
    For more information, please read the developer’s weblog (Kazuho@Cybozu Labs) or subscribe to the mailing list
    看上去非常不错,自己没实际用过,希望有用过的朋友分享一下经验。
     
c
写新的
j
下一篇文章/下一个回复
k
前一篇文章/以前的回复
r
回复
e
编辑
o
显示/隐藏 回复
t
回到顶部
l
go to login
h
show/hide help
esc
取消