Memcachedb
协议:New BSD License
作者:stvchu, gary.caokai, forever.sky81
团队:新浪互动社区事业部──博客产品
网址:http://www.memcachedb.org/
Memcachedb = memcache + Berkeley DB
Memcachedb是一款支持高并发的分布式持久存储系统,对任何原有memcached客户端来讲,它仍旧是个memcached,但是,它的数据是可以持久存储的。
前端:memcached的网络层
后端:Berkeley DB存储
写速度:从本地服务器通过memcache客户端(libmemcache) set 2亿条16字节长的key,10字节长的Value的记录,耗时16572秒,平均速度12000条记录/秒。
读速度:从本地服务器通过memcache客户端(libmemcache) get 100万条16字节长的key,10字节长的Value的记录,耗时103秒,平均速度10000条记录/秒。
• 支持的memcache命令
get, set, add, replace
incr, decr
delete
stats
flush_all
• 私有命令
db_checkpoint, db_archive
db_ismaster, db_whoismaster (for replication)
编译及安装方法:
http://blog.csdn.net/simonlsy/archive/2008/01/07/2027940.aspx

ncache
协议:New BSD License
作者:shinepf, shuiyang
团队:新浪互动社区事业部──博客产品
网址:http://code.google.com/p/ncache/
ncache是一款基于nginx的缓存系统,比Squid更快更高效。
01

02

03

04

05

06

07

08

09

10

以上图片来自PPT:http://ncache.googlecode.com/files/ncache.ppt


协议:New BSD License
作者:stvchu, gary.caokai, forever.sky81
团队:新浪互动社区事业部──博客产品
网址:http://www.memcachedb.org/
Memcachedb = memcache + Berkeley DB
Memcachedb是一款支持高并发的分布式持久存储系统,对任何原有memcached客户端来讲,它仍旧是个memcached,但是,它的数据是可以持久存储的。
前端:memcached的网络层
后端:Berkeley DB存储
写速度:从本地服务器通过memcache客户端(libmemcache) set 2亿条16字节长的key,10字节长的Value的记录,耗时16572秒,平均速度12000条记录/秒。
读速度:从本地服务器通过memcache客户端(libmemcache) get 100万条16字节长的key,10字节长的Value的记录,耗时103秒,平均速度10000条记录/秒。
• 支持的memcache命令
get, set, add, replace
incr, decr
delete
stats
flush_all
• 私有命令
db_checkpoint, db_archive
db_ismaster, db_whoismaster (for replication)
编译及安装方法:
http://blog.csdn.net/simonlsy/archive/2008/01/07/2027940.aspx

ncache
协议:New BSD License
作者:shinepf, shuiyang
团队:新浪互动社区事业部──博客产品
网址:http://code.google.com/p/ncache/
ncache是一款基于nginx的缓存系统,比Squid更快更高效。
01

02

03

04

05

06

07

08

09

10

以上图片来自PPT:http://ncache.googlecode.com/files/ncache.ppt


make all-recursive
make[1]: Entering directory `/home/soft/memcachedb-1.2.0'
Making all in doc
make[2]: Entering directory `/home/soft/memcachedb-1.2.0/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/soft/memcachedb-1.2.0/doc'
Making all in tools
make[2]: Entering directory `/home/soft/memcachedb-1.2.0/tools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/soft/memcachedb-1.2.0/tools'
Making all in conf
make[2]: Entering directory `/home/soft/memcachedb-1.2.0/conf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/soft/memcachedb-1.2.0/conf'
make[2]: Entering directory `/home/soft/memcachedb-1.2.0'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7/include -g -O2 -MT memcachedb.o -MD -MP -MF .deps/memcachedb.Tpo -c -o memcachedb.o memcachedb.c
memcachedb.c: In function `process_rep_command':
memcachedb.c:1284: error: structure has no member named `rep_set_priority'
memcachedb.c:1299: error: structure has no member named `repmgr_set_ack_policy'
memcachedb.c: In function `process_bdb_command':
memcachedb.c:1342: error: `DB_COMPACT' undeclared (first use in this function)
memcachedb.c:1342: error: (Each undeclared identifier is reported only once
memcachedb.c:1342: error: for each function it appears in.)
memcachedb.c:1342: error: syntax error before "c_data"
memcachedb.c:1343: error: structure has no member named `compact'
memcachedb.c:1343: error: `c_data' undeclared (first use in this function)
memcachedb.c:1343: error: `DB_FREE_SPACE' undeclared (first use in this function)
make[2]: *** [memcachedb.o] Error 1
make[2]: Leaving directory `/home/soft/memcachedb-1.2.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/soft/memcachedb-1.2.0'
make: *** [all] Error 2
安裝的時候出現這個,過不去,google下沒有發現相關資料?請教下要怎么處理?
#第二种,读写分离/备份模式
1.主服务器192.168.3.26读写监听21211 ,同步通过31211的端口完成:
memcachedb -p21211 -d -r -u root -H /data/mdb_11211_m -N -R 192.168.3.26:31211 -M -v >/data/21211.log 2>&12.
2.辅服务器 192.168.3.20 只读监听 21212,从192.168.3.26 的 31211端口同步数据,同时再开一个31212端口对外提供数据同步服务
memcachedb -p21212 -d -r -u root -H /data/mdb_11211_from_16801_s -N -R 192.168.3.20:31212 -O 192.168.3.26:31211 -S -v >/data/21212.log 2>&1
为什么我从主服务器缓存的东西辅服务器同步不过来呢,双方的日志如下:
主服务器log:
memcachedb: PANIC: fatal region error detected; run recovery
memcachedb: ignoring event 1
辅服务器log:
db_open: No such file or directory
dbp->close: OK
请指点一下,谢谢了!!
#第二种,读写分离/备份模式
1.主服务器192.168.3.26读写监听21211 ,同步通过31211的端口完成:
memcachedb -p21211 -d -r -u root -H /data/mdb_11211_m -N -R 192.168.3.26:31211 -M -v >/data/21211.log 2>&12.
2.辅服务器 192.168.3.20 只读监听 21212,从192.168.3.26 的 31211端口同步数据,同时再开一个31212端口对外提供数据同步服务
memcachedb -p21212 -d -r -u root -H /data/mdb_11211_from_16801_s -N -R 192.168.3.20:31212 -O 192.168.3.26:31211 -S -v >/data/21212.log 2>&1
为什么我从主服务器缓存的东西辅服务器同步不过来呢,双方的日志如下:
主服务器log:
memcachedb: PANIC: fatal region error detected; run recovery
memcachedb: ignoring event 1
辅服务器log:
db_open: No such file or directory
dbp->close: OK
请指点一下,谢谢了!!
tiffanys
gucci uk
louis vuitton sac
burberry uk
ralph lauren uk
IDRpoker.com Agen Texas Poker Online Indonesia Terpercaya
Alfamart official partner merchandise FIFA piala dunia Brazil 2014