Memcached 1.4.16 发布,集中式缓存系统

fei
 fei
发布于 2013年12月12日
收藏 28

Memcached 1.4.16 发布。2013-12-09 上一个版本还是2012-09-03的1.4.15 过了1年多。说明它还在更新,毕竟是用它的还是很多的。 此版本调整了tail repairs时间。以及一些Bug修正。

修复的bugs:

  • Builds on OS X Mavericks (with clang)
  • Add statistics for allocation failures
  •  Issue 294 : Check for allocation failure
  • Make tail leak expiry time configurable (-o tail_repair_time=60)
  • Fix segfault on specially crafted packet.
  • Close connection on update_event error while parsing new commands
  • Don't truncate maxbytes stat from 'stats settings'
  • Add the "shutdown" command to the server. This allows for better automation
  • fix enable-sasl-pwdb

新特性:

Adjusting tail repair time: -o tail_repair_time=60 (in seconds)

"tail repairs" are a failsafe within memcached where if a cache item is leaked via an unfixed or obscure bug, the item will be recycled anyway if it ends up at the bottom of the LRU and hasn't been touched in a long period of time. Most releases do not have these bugs, but some have so we've left the mechanism in place. The default time before reaping is 3 hours. For a busy site that sucks. we've lowered the default to one hour, which is much longer than any object should ever take to download.

If you need dead items to be pulled more quickly, use this override. Make sure you don't set it too low if you have clients which download items very slowly (unlikely, but eh).

下载:http://www.memcached.org/files/memcached-1.4.16.tar.gz

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 OSCHINA 社区 [http://www.oschina.net]
本文标题:Memcached 1.4.16 发布,集中式缓存系统
加载中

最新评论(7

mia0x75
mia0x75

引用来自“冰力”的评论

引用来自“__Untitled”的评论

redis可以取代它吧?

Redis 不太稳定。

怎么不太稳定呢?不是都2.8.3了么?编译libmemcached那叫一个慢。
冰力
冰力

引用来自“__Untitled”的评论

redis可以取代它吧?

Redis 不太稳定。
紫电清霜
紫电清霜
mia0x75
mia0x75
redis可以取代它吧?
eechen
eechen
新建一个用户用来运行memcached,可以参考Deb包脚本: memcached-1.4.13.deb/DEBIAN/postinst
sudo addgroup --system memcache
sudo adduser --system --disabled-login --ingroup memcache --home /nonexistent --gecos "Memcached" --shell /bin/false memcache

复制一份Deb包的配置到/opt/memcached/1.4.16/memcached.conf,里面指定了运行的用户/监听的端口/日志文件/内存大小等信息:
memcached-1.4.13.deb/usr/share/memcached/memcached.conf.default

源码包下scripts有启动脚本memcached-init和start-memcached和其他一些工具脚本.
cp scripts/memcached-init /opt/memcached/1.4.16/memcached
cp scripts/start-memcached /opt/memcached/1.4.16/start-memcached
根据安装路径进行适当修改,比如配置文件memcached.conf路径的指定.

sudo /opt/memcached/1.4.16/memcached {start|stop|restart|force-reload}

sudo netstat -antp|grep memcached
可见memcached在监听11211端口.
eechen
eechen
memcached依赖libevent库,所以需要先安装libevent库,再安装memcached:

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
wget http://memcached.googlecode.com/files/memcached-1.4.16.tar.gz
一些脚本可以参考Ubuntu提供了Deb包:
http://archive.ubuntu.com/ubuntu/pool/main/m/memcached/
更多二进制包可以到http://pkgs.org/按发行版搜索.

tar xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/opt/memcached/libevent/2.0.21
make && make install

tar xzf memcached-1.4.16.tar.gz
cd memcached-1.4.16
./configure --prefix=/opt/memcached/1.4.16 --with-libevent=/png/memcached/libevent/2.0.21
make && make install
liexusong
liexusong
memcached都更新了?
返回顶部
顶部