MySQL High availability

Source: Internet
Author: User

Using Cache memcache,

1, the hash algorithm can be used by the client to decide which Memcache server to route to, the client does not care about which Memcache server the data is stored, completely isolate the client and the service side; Select to specify memcache server very quickly;

Premise: Maintain a fixed number of memcache servers, always correctly select the Memcache server, get the correct cache data.

In fact, with the development of the business, the number of Memcache servers is always increasing, if it is simply a hash%memcache number to select the specified cache server, each additional memcache server will result in a higher cache failure rate.

IMPORTANT: The core point of distributed cache design: When designing a distributed caching system, we need to equalize the distribution of the key, and after adding the cache server, the cache is migrated to a minimum.

In order to solve this problem, there are two kinds of scenarios: consistent[consistency hash] and Modula

Consistent hash algorithm Ketama approach is: Select the specific machine node is not only rely on the need to cache the data key hash itself, and the machine node itself is also a hash operation.

For a description of the consistency hash algorithm Ketama, refer to: http://blog.csdn.net/kongqz/article/details/6695417

http://blog.csdn.net/sparkliang/article/details/5279393

MySQL 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.