Examples of large distributed database applications

Source: Internet
Author: User

1 background
We know that data is the lifeblood of a company, as the business becomes larger, the volume of data will become larger, the calculation will become more complex, performance, reliability, scalability needs will be more and more intense, this time a centralized database obviously has not satisfied the demand. There are two ways for technical decision makers to go, first: according to existing large-scale database solutions, such as SQL SERVER cluster or Oracle RAC, but this is tantamount to a road to burn money, small hundreds of thousands of, big millions or more Second: The use of a truly extensible distributed database, the use of small and medium-sized servers or even the accumulation of PCs to replace large servers, which is what many companies want, but not the right products, now with Clusterkiller, with it can really bring you: high performance, high availability, high scalability, High cost performance.
Video version introduced by HTTP://WWW.MEDIAFIRE.COM/?BD0BDJM2GXH
Video version of HTTP://WWW.MEDIAFIRE.COM/?0TYGENYDTDG demo
HTTP://WWW.MEDIAFIRE.COM/?CZCEYMW5DXZ Trial Version
Mode of communication: Msn:[email protected]; qq:39868224; Mobile: 13810901198
2 Scenario Comparison
2.1 Cluster mode for SQL Server


This structure can only be said to be a mechanism of failover, when there is a problem with one node and then transfer the load to another node. There is no way to load capacity and scalability, and it wastes hardware resources
2.2 Oracle Real Application Clusters (RAC)


Oracle RAC can support up to 64 nodes, basically solves the problem of performance, scalability, but it is a single point on the storage, and do not say what happens, Io can also become a performance bottleneck. We all know that a database is large to a certain extent, in the physical partitioning to fundamentally solve the problem, hundreds of thousands of of data to find and millions of tens of millions of data to find in the system consumption and response time has a geometric level of reduction.
2.3 Cluster Killer

[img] [/IMG]

As can be seen from the legend, the following grid-like machine is called the data layer, each machine is stored a partition of the complete data, each row to form a complete set of data, each column is a partition of the same number of copies of the same data to achieve query load balance effect, It is also a guarantee of high availability: Other machines will have load access after a problem with a column machine. In order not to expose such a complex structure to the application, a layer of machines called the middle tier, the middleware that resides in the database of the middle-tier machine, processes the SQL statements, and determines which machines are serviced by the type and condition of the SQL statement. Adding a load balancer to the outside of the middle tier so that the application or development/maintenance personnel can operate on any machine in the middle tier through a load balancer, it feels as if it is still using the same database, and it is very easy to use. The following are specific explanations from various angles:
L Development: Middleware is the host in the database, so the face of the database to write SQL statements have not changed, just need to put the SQL statement from the perspective of syntax to encapsulate it. Or the use of the original database management tools, do not need to use the new management tools, do not need to change the original usage habits, do not need to learn new knowledge.
Database maintenance: Database objects such as maintenance tables, stored procedures, and security are executed on any machine in the middle tier, as with a database, and the middleware crawls to the changes and distributes them to other machines. No additional work is added.
L Machine Maintenance: Because this structure is more than the centralized structure in the number of machines, so the maintenance cost at the machine level is higher than before. However, the maintenance of the machine will not affect the availability of the entire structure, just need to change the configuration on any one of the middle tier to add a machine to the structure or move out of the structure.
L Diagnostics: When an exception occurs, it is clear that the cause of the error and the machine on which the error occurred, as well as the details of each execution step are logged in detail in the execution log.
L Partitioning: Supports a variety of data types of partitions, partitioning methods have static partitioning and linear growth of two ways. Static partitioning is self-evident that the number of partitions must be planned at the outset; linear growth is the beginning of only one or a few partition columns, with the increase in data volume and access to add new partitions to achieve the effect of linearly extended
L Summary: The localization and function of middleware is to combine many database servers to achieve high scalability, high availability and high performance. Many key database technologies, such as transactions, connection pooling, locks, security, and so on, depend on the database to be completed, regardless of the cost of development or implementation of the risk to a minimum.

2.4 Comparison of indicators
L Failover/Reliability
N SQL SERVER Cluster: Enables failover of the previous compute node, the storage device behind a single point
N Oracle RAC: Enables failover of previous compute nodes, back storage device or single point
N Cluster Killer: Scalable from every dimension, so you can find replacements for failover, no matter which dimension the machine is damaged in.
• Load Balancing
N SQL SERVER Cluster: From its working mechanism, it can be seen that only one of its two nodes is working, so there is no load balancing capability
N Oracle RAC: Several compute nodes in front of it can be serviced at the same time, but there is only one storage device behind it. So the calculation can be loaded, the storage cannot be loaded
N Cluster Killer: The ability to calculate the load can also store the load
L Extensibility
N SQL SERVER Cluster: Only two compute nodes can be composed of one storage
N Oracle RAC: Up to 64 nodes with one storage component
N Cluster Killer: Each dimension can be expanded, and can be based on the increase of the linear extension of data, the minimum two machines can be set up, and the relationship between each machine is loosely coupled, the expansion does not require complex installation, configuration.
L Hardware Requirements
N SQL Server Cluster: Because you want to use a server that can connect to storage devices, this kind of server is very high-grade server, expensive. And there is a node under normal circumstances is idle, so cost-effective low
N Oracle RAC: it requires the same hardware configuration, but at least there is no idle resources, cost-effective
N Cluster Killer: There is no need for tight coupling of each machine, the configuration of the machine is not required, buy a cluster of money can buy dozens of small servers or hundreds of PCs, Google's distributed structure has verified its cost-effective.

3 Success Stories
3.1 A large job search/recruitment site
L Project background: A system of searching resumes for enterprises, characterized by large data volume, complicated query conditions and frequent updates. The specific data are: Main Table 7 million, the sub-table from 16 million to 20 million, 120,000 times a day, 40% of the query criteria with keywords; the number of transactions that individual users Add/update resumes daily is 1.2 million times.
L Solution: Build a distributed database structure using 30 Dell 2950 Small PC servers.
L Performance test data:
N Test Model: Query
n Query condition: The actual condition that is greater than or equal to the user on the line
N Test Tool: LoadRunner8.0
N Test time: 20 hours
N Concurrent Number: 50
N Response time: Average 1.5 seconds, 90% response time under 1.9 seconds, Variance: 1.1
n Number of Queries: Success 487325, timeout: 98, no other type error
L Benefits:
n because the component does not affect the business logic, the business process does not need to be refactored and is upgraded to a new schema in just 2 days
n Query time reduced from the original 10 seconds to less than 1 seconds, 92% of the query below the second, greatly improve the customer experience
n true 24x7 continuous service delivery
The expansion capabilities of the N system are greatly enhanced, enabling customers to have more complex business logic on their own, and to build better search models, thereby enhancing the competitive strength of the customer in the industry.

Examples of large distributed database applications

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.