Mycat+mysql building a highly available Enterprise DB cluster--2nd Chapter Mycat Getting Started

Source: Internet
Author: User

    • 2-1 Chapter Overview
    • 2-2 What is Mycat
    • 2-3 What is a database middle tier
    • The main role of 2-4 Mycat
    • 2-5 Mycat Basic Elements
    • Installation of 2-6 Mycat
2-1 Chapter Overview1, master the basic concept of mycat, function and applicable scene;

2, Master Mycat installation and start-up;

2-2 what is Mycat

1, different types of jobs on the different understanding of mycat;

    • Research and development personnel;

    • Architect;

2, the realization of "read and write separation" of two ways;
    • From the point of view of the program, two sets of data sources are configured;
    • Through the perspective of middleware, such as Mycat;
2-3 What is a database middle tier1, the database middle layer first knowledge;

the main role of 2-4 Mycat1, as a distributed database middle-tier use (relational and Philippine relationship type can be);

2, to achieve the back-end database read-write separation and load balancing;3, in the database, the general read request operation is much higher than the write request operation;

4, the change is shown, only applies to "one Master one from" the MySQL database schema;

5, the realization of "a master more from" The MySQL high availability, need to be MHA or 3M way to achieve;6, vertical segmentation of the business database;

7, using the advantages of Mycat, the back end corresponding to the real database, as a "logical library";

8, the business database of horizontal segmentation (sub-Library sub-table);

9, the segmentation logic, through the Mycat;

10, control the number of database connections;
    • When the number of connections is full, all new requests will no longer be connected, affecting the business;
    • Through the MYCAT middleware, a public "database connection pool" is established;

2-5 mycat Basic Elements1, logical Library & logical table concept review;

2, the classification of the logical table;
    • Shard table
    • Global table
    • ER relationship table

installation of 2-6 Mycat

1, download and decompression mycat;

2, install Java running Environment JDK1.7 or above version;

3, new Mycat running system account;

4, configure the system environment variables;

5, modify the Mycat start parameters;

Mycat+mysql building a highly available Enterprise DB cluster--2nd Chapter Mycat Getting Started

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.