Installation Configuration Message Queue persistence of memcacheq

Persistent message queues memcacheq .memcacheq describes a mounting configuration features: 1. Easy to use processing speed 2. 3. 4. A plurality of queue concurrent performance compatible 5. 6. Good use conveniently zend framework memcacheq in agreement with memcache rely on Berkeley DB and libevent. Berkeley DB queue for persistent storage of data, to avoid memcacheq this server crash or crash when the data will not be lost. Second mounting Berkeley DB download url: http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html # tar zxvf db-5.2.28.tar.gz -C ../software/ # cd . ../software/db-5.2.28/ # cd build_unix / # ../dist/configure --prefix = / usr / local / db-5.2.28 # make # make install three mounting libevent # wget http: / /monkey.org/~provos/libevent-2.0.12-stable.tar.gz # tar zxvf libevent-2.0.12-stable.tar.gz -C ../software/ # cd ../software/libevent-2.0 .12-stable / # ./configure --prefix = / usr / local / libevent-2.0.12 # make # make install four mounting memcacheq # wget http://memcacheq.googlecode.com/files/memcacheq-0.2. 0.tar.gz # tar zxvf memcacheq-0.2.0.tar.gz -C ../software/ # cd .. The number of threads (default 4) -------------------- BerkeleyDB Options ---------------------- --------- -m <num> BerkeleyDB cache memory size, default is 64MB -A <num> underlying page size, default is 4096, (512B ~ 64KB, power-of-two) -H <dir > home directory database, default is '/ data1 / memcacheq' -L <num> log buffer size, default is 32KB -C <num> number of seconds a checkpoint, 0 for disable, default is 5 minutes -T <num> number seconds memp_trickle once, 0 for disable, default is 30 seconds -S <num> number of seconds queue stats dump once, 0 for disable, default is 30 seconds -e <num> What percentage reached cache needs to be refreshed, default is 60% -E <num> a single DB file how many pages, default is 16 * 1024, a length of 0 for disable -B <num> Specifies the message body, in bytes, default is 1024 -D <num> how many milliseconds to make a deadlock detection (deadlock detecting), 0 for disable, default is 100ms -N open DB_TXN_NOSYNC a significant performance improvement, default is off -R automatically delete the log files are no longer needed, default is off six common errors: ./memcacheq:

Reproduced in: https: //my.oschina.net/766/blog/211152

Guess you like

Origin blog.csdn.net/weixin_33890526/article/details/91493179