Experience with MySQL (vii) read-Write separation cluster scheme

Source: Internet
Author: User

Haproxy+keepalived+abstractroutingdatasource of the reading and writing separation cluster scheme

In the company to do the MySQL cluster solution, after several times of analysis and discussion, as well as performance test analysis. found that the Haproxy scheme is the most reliable. Use keepalived to solve the haproxy problem of the single point. Using spring's abstractroutingdatasource to solve the read-write separation of the business, the main host cluster to consider the primary node single point problem. Whether from the performance, deployment of the difficulty, this scenario is now more suitable for the company's current development.

Where keepalived installation tutorials refer to

http://phl.iteye.com/blog/1817550

Installation reference for Haproxy

http://phl.iteye.com/admin/blogs/1817551

Abstractroutingdatasource Code Reference attachment

One is the container that uses spring, and one that doesn't use the

Spring3.2.5-abstractroutingdatasource_pom.zip (6 KB)

Spring3.2.5-abstractroutingdatasource-jar-withoutspring.zip (7.2 KB)

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/MySQL/

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.