memcached Application and Compatibility program Mixi case StudyMixi used memcached in the early stages of providing services.With the rapid increase of website access, simply adding slave to the database is not enough, so the memcached is introduced.
Use magent to build a memcached Cluster
Although memcached can use distributed caching to prevent the loss of all cached data when memcached goes down, it is difficult to escape part of the data.
We can use the magent agent memcached to implement
Memcached is a high-performance distributed memory object caching system for dynamic Web applications to mitigate database load. It improves the speed of dynamic, database-driven Web sites by caching data and objects in memory to reduce the number
Download memadmin,:http://www.junopen.com/memadmin/and create a new site in IIS. Test address: Http://wap.yousawang.com/mem,1. Restart ApacheService httpd Restrat/ETC/INIT.D/HTTPD stop/ETC/INIT.D/HTTPD start2. Restart MySQLService mysqld Restart/etc/
First of all, the following problems exist in memcachedThere is no built-in distributed function in itself, it is not possible to use multiple Memcache servers to store different data, maximize the use of the same resources, and unable to
Magent is used to build a Memcached cluster. Because there is no communication between the Memcached server and the server, and no data is copied and backed up, a single point of failure may occur when any server node fails, if you need to implement
[Author: Zhang banquet this article version: V1.0 last modified: 2009.01.19 reprint please indicate the original link: http://blog.s135.com/post/393/
]
Magent is an open-source memcached proxy server software. Its project URL
First, download magentOfficial website: https://code.google.com/archive/p/memagent/downloadsOffline Version: (Link: https://pan.baidu.com/s/1kU9DLI3 password: K6QG)Second, compile and installDescription: Magent because it is a 10 product, so compile
Server side is mainly installed Memcache server side.Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gzIn addition, Memcache used the libevent this library for socket processing, so you also need to install the latest version of
memcached Boot ModeMethod One:Append the start command to the/etc/rc.d/rc.local file
/usr/local/memcached/bin/memcached-u root-d-M 2048-l 192.168.137.99-p 11211-p/tmp/memcached.pid
You can also specify no IP, which is native by default,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.