memcached high availability cluster theory and introduction

Source: Internet
Author: User
Keywords Cloud computing high availability cluster principle

memcached high availability cluster theory and introduction. memcached In the realization of distributed cluster deployment, the memcached service is not between the communication, the distributed algorithm is through the client bar Data stored in different memcached, so when we finish the cluster client to write data inside, Will appear the following situation.

After the client writes data to a memcached node, the other two nodes can not be queried.

So how the outcome of this issue, is the next to be done.

The fact that memcached can not communicate with one another over this type of cluster can not be tolerated in heavily visited web sites. So we will use a magent open source software to solve this problem.

magent is an open source proxy service software, we can achieve the synchronization of cached data through him, of course, the synchronization here is not to say that between memcached can communicate with each other, but magent can back up data, and magent can simultaneously connect more A memcached node, when memcached restart or downtime recovery from the magent specified memcached backup node to restore the lost cache data.

Through the figure to explain the principle:

Mageng will specify the main memcached node and the backup memcached node at startup. Suppose we designate two main cache nodes and one backup node. When the client writes, the algorithm writes to one of the designated main cache nodes And backs up the data to the memcached backup node, recovering the lost cache data from the backup node when the write node restarts or after the downtime is restored.

At the same time magent can also use keepalived to achieve high availability.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.