In this tutorial, we will see how to add new line item to magento order totals. What this means is that, how to add an additional Fee or Discount, or any kind of charge to order total of the magent...
分类:
其他好文 时间:
2015-08-27 11:30:02
阅读次数:
287
Memcache本身并不实现集群功能。假设你想使用Memcahce集群需要使用第三方软件或编程来实现自己的设计,这里将被用来memagent实现代理,memagent也被称为magent。我们注意到,,这二者当成两种工具。至于memcache、magent的安装请參考文章 在Linux上安装Me.....
分类:
系统相关 时间:
2015-07-27 20:41:56
阅读次数:
488
memcached虽然能够通过分布式缓存,实现其中memcached宕掉不会丢失全部缓存数据,但部分数据还是难逃一劫。
我们可以利用magent代理memcached实现主从备份来保证缓存数据完好无损,而且magent还可以作为从继续使用,但大体工作原理如下:
1.magent每次写数据都会写到主memcached和从memcached上,并且向主从memcached写的算法一样;
2.当主...
分类:
系统相关 时间:
2015-06-10 19:30:33
阅读次数:
168
[root@192_168_1.79magent-0.5]$makegcc-Wall-O2-g-c-omagent.omagent.cgcc-Wall-O2-g-c-oketama.oketama.cgcc-Wall-O2-g-omagentmagent.oketama.o-leventketama.o:Infunction`create_ketama‘:/opt/root/magent-0.5/ketama.c:399:undefinedreferenceto`floorf‘collect2:ldretur..
分类:
其他好文 时间:
2015-06-02 20:19:39
阅读次数:
201
root252771011:01?Ssl0:00/opt/root/memcached-1.4.13/memcached-m512m-p11211-droot12731015:41?Ssl0:00/opt/root/memcached-1.4.13/memcached-m512m-p11212-d-urootroot12901015:41?Ssl0:00/opt/root/memcached-1.4.13/memcached-m512m-p11213-d-urootroot13091015:42?Ss0:00..
分类:
系统相关 时间:
2015-06-02 18:14:28
阅读次数:
183
[root@192_168_1_81~]#telnet192.168.1.8011311Trying192.168.1.80...Connectedto192.168.1.80.Escapecharacteris‘^]‘.statsmemcachedagentv0.6matrix1->192.168.1.79:11211,poolsize0matrix2->192.168.1.80:11211,poolsize0ENDsetbk100211STOREDsetbk200212^]telnet>..
分类:
Web程序 时间:
2015-06-02 18:11:07
阅读次数:
222
方案说明:通过一系列测试,发现通过magent代理多台memcache有个问题,就是当master挂了之后再次启动就会把用户踢出去,也就是sessonmiss。为了解决该问题,需要在此基础上利用repcached进行双主的数据同步。Repcached介绍repcached:全称replicationcached是由日本人发明的mem..
分类:
系统相关 时间:
2015-05-21 19:45:38
阅读次数:
238
在添加magent代理后,做memcached测试的发现,如果并发很高,数据库的连接数居高不下,按理讲随着将key存入缓存中,连接数应该慢慢降下来才对,但是当并发低的时候却很正常。
由于在启动memcached时,加入了-vvv参数打印内部状态信息,查看日志:
29: going from conn_parse_cmd to conn_write
29: going from conn_wri...
分类:
其他好文 时间:
2015-05-21 10:57:43
阅读次数:
140
Memcache服务器安装配置(192.168.1.247~249)首先:配置本地YUM源,挂载光驱,安装编译器CentOS6.6有两个ISO文件,在虚拟机上安装两个光驱,并连接到两个ISO文件1、修改yum源配置cd/etc/yum.repos.d/mvCentOS-Base.repoCentOS-Base.repo.bakviCentOS-Media.repo修改替换为如下内..
分类:
系统相关 时间:
2015-05-06 01:43:04
阅读次数:
270
首先:配置本地源,挂载光驱,安装编译器Yuminstallgccgcc-c++wgethttp://monkey.org/~provos/libevent-1.4.9-stable.tar.gz
tarzxvflibevent-1.4.9-stable.tar.gz
cdlibevent-1.4.9-stable/
Mkdir/usr/local/libevent
./configure--prefix=/usr/local/libevent
make&&..
分类:
系统相关 时间:
2015-05-06 01:41:36
阅读次数:
272