Reference: http://www.lanceyan.com/tech/arch/mongodb_shard1.htmlI. Introduction of MONGODB shardsEarly in the system, the amount of data will not cause too much problem, but as the volume of data continues to increase, the subsequent sooner or later
One, MySQL fabric high-availability cluster A database crashes, does not affect the integrity of the data1. Pre-Test preparationA) View the server status of the Group_id-1 cluster groupMysqlfabric Group Lookup_servers Group_id-1return Result:Command:
The difference between Mycat and SHARDING-JDBC
1) Mycat is a third-party application of middleware, SHARDING-JDBC is a jar package
2) You do not need to change the code when using Mycat, and you need to modify the code when using SHARDING-JDBC
Mycat
A brief introduction: Today let's talk about the preliminary understanding of sharding rulesSecond Frontier: Mycat's Shard rules are very rich and can also be extended according to JavaThree documents: Rule.xmlFour specific Shard rules:Five what we
Share a MySQL database shard backup script (original) and a mysql database shard backup script
Share a MySQL database shard backup script (original)
Development ideas:
1. path: Specify the backup location and define the path (first determine whether
Use LAST_INSERT_ID of MySQL to determine the unique ID value of each table Shard in the MySQL data table structure. generally, a 'id' field with the 'auto _ INCREMENT 'extension property is defined, to ensure that each record of the data table can
2.1.1 What is data slicingThe word "Shard" means "fragments" in English, and the technical terminology associated with the database seems to be the earliest seen in massively multiplayer online role-playing games. "Sharding" is called "Shard".
In the previous article "database sharding design in youpai network architecture,I have mentioned the primary key selection problem in the MySQL database sharding design. In this article, I want to discuss this issue,This serves as a supplement to
Mongodb,nosql technology implementation, based on the Distributed file storage database, written by the C + + language. Mainly to solve the problem of access efficiency of massive data, and provide scalable and high-performance database storage
in the MongoDB There is another cluster, the Shard technology, with MySQL the table partition is similar, we know that when the amount of data reaches T level of time, our disk, memory is unbearable, for such a scenario we should deal with. First,
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.