http://www.mysqlkorea.co.kr
Çѱ۸Ŵº¾ó 5.0 , Çѱ۸Ŵº¾ó 5.1 , MySQL 5.1 HA , »ç¿ëÀڸŴº¾ó
°øÁö»çÇ×  
´º½º  
Áú¹®°ú ´äº¯
DBA
Developer
Cluster
ÅäÅ©¹Ú½º  
À̺¥Æ®  
¼­Æ÷Æ® ƼÄÏ  
ÃֽűÛ
foreign key ¼³Á¤¡¦
ÀÎÅØ½º Ãß°¡ µî¿¡¡¦
mysql master - s¡¦
´Ù´ë´Ù °ü°è¿¡¼­ ¡¦
mysql myÆÄÀϰú ¡¦
 
Áú¹®°ú ´äº¯ (Cluster) > Ä¿¹Â´ÏƼ Á¸ > Áú¹®°ú ´äº¯ (Cluster)
[¼³Ä¡°ü·Ã]Cluster ¼³Á¤ ÈÄ sql ³ëµå°¡ ¿¬°áÀÌ ¾ÈµÇ³×¿ä.µµ¿ÍÁÖ¼¼¿ä
±Û¾´ÀÌ : ¿øºó   ³¯Â¥ : 09-10-12 19:03   Á¶È¸¼ö : 6769
¾È³çÇϼ¼¿ä. Ŭ·¯½ºÅ͸¦ ¼³Á¤ ÇÑ ÈÄ¿¡ °ü¸®³ëµå¿¡¼­ show¸¦ ÇÏ´Ï
[root@localhost bin]# ndb_mgm -e show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    @192.168.192.230  (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0)
id=3    @192.168.192.240  (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.192.210  (mysql-5.1.35 ndb-7.0.7)
[mysqld(API)]   1 node(s)
id=4 (not connected, accepting connect from 192.168.192.220)
ÀÌ·¸°Ô not connected·Î ¶³¾îÁý´Ï´Ù.
¼³Á¤Àº my-sql 5.1 h/a ¸Å´º¾ó¿¡ Àִ¼³Á¤À» Âü°í·Î Çß½À´Ï´Ù.
ÃÑ4´ë ( 1´ë °ü¸®, 1´ë sql, 2´ë µ¥ÀÌÅÍ ³ëµå)·Î ±¸¼ºÇß½À´Ï´Ù. ±×¸®°í
½Ç¼­¹ö°¡ ¾Æ´Ï vmware¿¡¼­ ¼³Á¤À» Çß½À´Ï´Ù.
 
my.cnf ÆÄÀÏÀº
[MYSQLD]
ndbcluster
ndb-connectstring=192.168.192.210
[MYSQL_CLUSTER]
ndb-connectstring=192.168.192.210
ÀÌ·¸°Ô Çß½À´Ï´Ù.
 
±×¸®°í config.ini ÆÄÀÏÀº
[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=80M
IndexMemory=18M
[TCP DEFAULT]
portnumber=2202
[NDB_MGMD]
Id=1
hostname=192.168.192.210
datadir=/var/lib/mysql-cluster
[NDBD]
Id=2
hostname=192.168.192.230
datadir=/usr/local/mysql/data
[NDBD]
Id=3
hostname=192.168.192.240
datadir=/usr/local/mysql/data
[MYSQLD]
Id=4
hostname=192.168.192.220
ÀÌ·¸°Ô Çß½À´Ï´Ù.
 
¹«¾ùÀÌ ¹®Á¦Àϱî¿ä? ÀÏÁÖÀÏ ³»³» °è¼Ó Áö¿ü´Ù°¡ ´Ù½Ã ÇØº¸°í Çߴµ¥µµ ¸¶Âú°¡ÁöÀ̳׿ä
°ÅÀÇ ¹ÌÄ¡±â ÀϺ¸ Á÷ÀüÀÔ´Ï´Ù.
µµ¿ÍÁÖ¼¼¿ä
 
P.S Âü°í·Î SQL ³ëµå¿¡¼­ ½ÇÇàÇÏ¸é ¿¡·¯·Î±×ÀÇ °æ°í°¡ º¸ÀÔ´Ï´Ù.
091012 18:55:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
091012 18:55:30  InnoDB: Started; log sequence number 0 46409
091012 18:55:30 [Note] NDB: NodeID is 4, management server '192.168.192.210:1186'
091012 18:55:31 [Note] NDB[0]: NodeID: 4, no storage nodes connected (timed out)
091012 18:55:31 [Warning] NDB: server id set to zero will cause any other mysqld with bin log to log with wrong server id
091012 18:55:31 [Note] Starting Cluster Binlog Thread
091012 18:55:32 [Note] Event Scheduler: Loaded 0 events
091012 18:55:32 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.1.35-ndb-7.0.7-cluster-gpl'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Cluster Server (GPL)
ÀÌ·¸°Ô¿ä.
¹ÎÁ·
SQL ³ëµå ¼³Ä¡´Â ¾î¶»°Ô Çϼ̳ª¿ä?

¼³Ä¡ ¼ø¼­¶û À§Ä¡ my.cnf ÆÄÀÏ , È£½ºÆ® ³×ÀÓ.err ¸¦ ¿Ã·ÁÁֽðھî¿ä?
¿øºó
ÇØ°áÇß½À´Ï´Ù. µ¥ÀÌÅÍ ³ëµåÂÊ¿¡ ¹æÈ­º®ÀÌ ¿Ã¶ó°¡ Àֳ׿ä. ¹æÈ­º® ³»¸®´Ï±ñ ±¦Âú³×¿ä
¹ÎÁ·´Ô ½Å°æ½á Áּż­ °¨»çÇÕ´Ï´Ù.
¹ÎÁ·
³ëµåµé°£ ¹æÈ­º®Àº ³»·ÁÁÖ°í ¼³Ä¡ ÇÏ¼Å¾ßµÇ¿ä  ^^

ÀßµÇ¼Ì´Ù´Ï ´ÙÇàÀÔ´Ï´Ù.
ÀÌÀü±Û mysql cluster ÆÄÀÏ. ÀÌ ÆÄÀϵéÀÌ ´Ù ÇÊ¿ä ÇѰǰ¡¿ä? 
´ÙÀ½±Û cluster ÀÌ¿ë½Ã DB onject(view,trigger,sp)µîÀº Áö¿øÀÌ ¾ÈµÇ³ª¿ä? 
MySQL Korea »çÀÌÆ®ÀÇ ÄÁÅÙÃ÷ ¼ÒÀ¯±ÇÀº (ÁÖ)»ó»óÀ̺ñÁî¿¡ ÀÖÀ¸¹Ç·Î ¹«´ÜÀüÀ縦 ±ÝÇÕ´Ï´Ù.
Copyright ¨Ï ssebiz All Rights Reserved.