MySQL Cluster + replication
Lokacija: Zanimljivi linkovi :: MySQL   |   Autor: cacan @ 3:00   |  

You may know about the MySQL Cluster, which is a complex architecture to achieve high availability and performance. One of the advantages of MySQL Cluster is that each node is a peer to the others, whereas in a normal replicating system you have a master and many slaves, and applications must be careful to write only to the master.

The main disadvantages of MySQL Cluster are (as of MySQL 5.0):

* The database is in memory only, thus requiring more resources than a normal MySQL database. (MySQL 5.1 introduces table spaces, with the capability of storing nonindexed data on disk.)
* Some normal features are not available, such as full-text searches, referential integrity, and transaction isolation levels higher than READ COMMITTED.

There are some cases where the MySQL Cluster is the perfect solution, but for the vast majority, replication is still the best choice.

Replication, too, has its problems, though:

* There is a fastidious distinction between master and slaves. Your applications must be replication-aware, so that they will write on the master and read from the slaves. It would be so nice to have a replication array where you could use all the nodes in the same way, and every node could be at the same time master and slave.
* There is the fail-over problem. When the master fails, it’s true that you have the slaves ready to replace it, but the process of detecting the failure and acting upon it requires the administrator’s intervention.

Fixing these two misfeatures is exactly the purpose of this article. Using features introduced in MySQL 5.0 and 5.1, it is possible to build a replication system where all nodes act as master and slave at the same time, with a built-in fail-over mechanism.

Read more: Setting Up a Multimaster Replication System

Vezani blogovi:
  • Wampserver - WAMP5 + WAMP4 - Win32 Apache MySQL PHP
  • MySync - MySQL - Synchronisation without ODBC-Connection
  • Migrating from Microsoft Access to MySQL
  • WOS - WebServer on Stick - Apache, MySQL, PHP - USB stick
  • PHP, Apache, MySQL - direktno s CD-a
  • MySQL regular expression search engine
  • Appserv Open Project - one click install Apache PHP MySQL Zend phpMyAdmin

  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

       6 korisnika online   
    January 2008
    S M T W T F S
    « Dec   Feb »
    Za korisnike:

    32 queries. 0.187 seconds. Powered by Blog385.com