• Like
MySQL replication & cluster
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

MySQL replication & cluster

  • 2,490 views
Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,490
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
125
Comments
0
Likes
4

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. MySQL replication & cluster by Joeri de Bruin ProcoliX
  • 2. Single vs Multiple Multiple MySQL servers means that there are more MySQL services, this will normaly be on more servers.
  • 3. Why multiple 1. High availability 2. On line backup
  • 4. replication vs cluster
  • 5. Proces Replication 1. UPDATE on master 2. UPDATE written in Binlog 3. Binlog is read by slave 4. UPDATE on slave Cluster 1. UPDATE on MySQL 2. UPDATE written to Cluster filesystem
  • 6. Uses Replication has 1 master and slaves Cluster can read and write on all nodes
  • 7. Replication quick howto [mysqld] server-id=2 master-host=db- master.mycompany.com master-port=3306 master-user=gooey master-password=octopus Procedure: 1. Configure master and slave 2. Stop MySQL 3. Copy data tot slave 4. Start MySQL on master 5. Start MySQL on slave
  • 8. Cluster quick howto [MYSQLD] # file "config.ini" ndbcluster [NDBD DEFAULT] ndb-connectstring=192.168.0.10 NoOfReplicas= 1 MaxNoOfOrderedIndexes=2500 [MYSQL_CLUSTER] MaxNoOfUniqueHashIndexes=2500 ndb-connectstring=192.168.0.10 MaxNoOfAttributes=4000 Procedure: Install MySQL-MAX Configure cluster Configure MySQL Start MGM node Start ndb deamon Start MySQL
  • 9. MySQL cluster and WebGUI MySQL cluster uses NDB cluster engine in stead of MyIsam tables Alter create.sql to use with MySQL cluster vi create.sql :0,$s/TYPE=MyISAM/ENGINE=NDBCLUSTER/g
  • 10. Tips and tricks Always use the same MySQL version Use the source: www.mysql.com Replication: http://dev.mysql.com/doc/mysql/en/replication.html Cluster: http://dev.mysql.com/doc/mysql/en/multi-computer.html