Deep analysis of two-machine hot standby scheme with pure software mode

Source: Internet
Author: User

Database dual-Machine hot equipped with two typical ways, one is more standard, two servers through a shared storage device (typically shared disk array or storage Area network SAN), and install dual-computer software, dual-machine hot standby, known as sharing mode. Another way is through a pure software approach, generally referred to as pure software or mirror mode (Mirror).

For shared methods, the database is placed on a shared storage device. When a server provides services, read and write directly on the storage device. When the system is switched, the other server also reads the data on the storage device.

For the pure software way, through the mirror software, the data can be copied to another server in real time, so the same data on both servers exist, if a server fails, you can switch to another server in time.

The pure software approach can reduce costs to some extent, but it also has very obvious drawbacks:

1. Reliability is relatively poor, real-time data replication between the two servers is a relatively weak link.

2. Once a server has been interrupted, recovery will be more complex data synchronization recovery. Also, this time period system is unprotected.

3. There is no transaction mechanism, because the replication is in the file and disk layer, the success of replication does not affect the database transaction operations, so there is a situation of incomplete data changes, there is a considerable risk.

Therefore, it is recommended that you do not choose a pure software solution unless you have to.

On the other hand, there is a kind of database parallel solution, it is not in the file or disk layer to replicate, but directly to the database operations in front of the route distribution, in parallel with the transaction mechanism to complete the update of the database, but also to provide the database of parallel services. This approach is currently very successful for SQL Server applications and is significantly better than shared storage + dual-computer software

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.