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)
Ŭ·¯½ºÅÍ °ü·Ã ¹®Àǵ帳´Ï´Ù.
±Û¾´ÀÌ : ÀḸº¸   ³¯Â¥ : 13-07-16 10:29   Á¶È¸¼ö : 5415
Ŭ·¯½ºÅÍ¿¡¼­ Å×ÀÌºí »ý¼º ½Ã
Got error 707 'No more table metadata records (increase MaxNoOfTables)' from NDB
À§¿Í °°Àº ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.
ÇØ´ç ¿É¼ÇÀÇ ÃÖ´ëÄ¡ÀÎ 20320À¸·Î °ªÀ» ÁÖ°í Àç½ÃÀÛÇÑ µÚ ndb_config -q MaxNoOfTables ·Î °ªÀÌ º¯°æµÈ °É
È®ÀÎ ÇÑ µÚ ´Ù½Ã Å×À̺íÀ» »ý¼ºÇصµ ¸¶Âù°¡Áö·Î ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.
Å×À̺íÀÇ °¹¼ö´Â ÃÑ 5472°³ÀÌ¸ç ½ÇÁ¦ ¿ë·®Àº ¾à 80±â°¡Á¤µµÀÔ´Ï´Ù.
±¸¼ºÀº mgmt + api * 2, data * 3 À¸·Î ÃÑ 5´ë ±¸¼ºÇϰí ÀÖ½À´Ï´Ù.
DB ¿ë·®ÀÌ ³Ê¹« Ä¿¼­ °¢ Å×À̺íµéÀº µð½ºÅ©·Î ÀúÀåµÉ ¼ö ÀÖµµ·Ï Çß°í, ½ÇÁ¦·Î °¢ ³ëµåµéÀÇ µ¥ÀÌÅÍ¿Í À妽º °ø°£ÀÇ »ç¿ë·®Àº 30 ~ 40ÆÛ¼¾Æ®Á¤µµÀÔ´Ï´Ù.
NDB·Î ±¸¼ºÇϱ⿡ ³Ê¹« ¿ë·®ÀÌ Ä¿¼­ÀÎÁö.. ¾Æ´Ï¸é ´Ù¸¥ ¿É¼ÇÀ» ¼öÁ¤ÇØ¾ß ÇÒÁö...
´äº¯ ºÎʵ右´Ï´Ù.
ÀḸº¸
config.ini ³»¿ëÀÔ´Ï´Ù.

[NDBD DEFAULT]
NoOfReplicas: 3
DataDir: /usr/local/mysqlc/mysql-cluster
FileSystemPath: /usr/local/mysqlc/mysql-cluster

# Data Memory, Index Memory, and String Memory #
DataMemory: 6000M
IndexMemory: 1500M
StringMemory: 5

# Transaction Parameters #
MaxNoOfConcurrentTransactions: 4096
MaxNoOfConcurrentOperations: 100000
MaxNoOfLocalOperations: 100000

# Transaction Temporary Storage #
MaxNoOfConcurrentIndexOperations: 8192
MaxNoOfFiredTriggers: 4000
TransactionBufferMemory: 1M

# Scans and buffering #
MaxNoOfConcurrentScans: 300
MaxNoOfLocalScans: 32
BatchSizePerLocalScan: 64
LongMessageBuffer: 1M

# Logging and Checkpointing #
NoOfFragmentLogFiles: 300
FragmentLogFileSize: 16M
MaxNoOfOpenFiles: 40
InitialNoOfOpenFiles: 27
MaxNoOfSavedMessages: 25

# Metadata Objects #
MaxNoOfAttributes: 8000000
MaxNoOfTables: 20300
MaxNoOfOrderedIndexes: 20480
MaxNoOfUniqueHashIndexes: 10240
MaxNoOfTriggers: 60000
MaxNoOfUniqueHashIndexes: 20480

# Boolean Parameters #
LockPagesInMainMemory: 0
StopOnError: 1
Diskless: 0
ODirect: 0

# Controlling Timeouts, Intervals, and Disk Paging #
TimeBetweenWatchDogCheck: 6000
TimeBetweenWatchDogCheckInitial: 6000
StartPartialTimeout: 30000
StartPartitionedTimeout: 60000
StartFailureTimeout: 1000000
HeartbeatIntervalDbDb: 2000
HeartbeatIntervalDbApi: 3000
TimeBetweenLocalCheckpoints: 20
TimeBetweenGlobalCheckpoints: 2000
TransactionInactiveTimeout: 0
TransactionDeadlockDetectionTimeout: 1200
DiskSyncSize: 4M
DiskCheckpointSpeed: 10M
DiskCheckpointSpeedInRestart: 100M
ArbitrationTimeout: 10

# Buffering and Logging #
UndoIndexBuffer: 2M
UndoDataBuffer: 1M
RedoBuffer: 32M
LogLevelStartup: 15
LogLevelShutdown: 3
LogLevelStatistic: 0
LogLevelCheckpoint: 0
LogLevelNodeRestart: 0
LogLevelConnection: 0
LogLevelError: 15
LogLevelCongestion: 0
LogLevelInfo: 3
MemReportFrequency: 0

# Backup Parameters #
BackupDataBufferSize: 2M
BackupLogBufferSize: 2M
BackupMemory: 64M
BackupWriteSize: 32K
BackupMaxWriteSize: 256K

[MGM DEFAULT]
PortNumber: 1186
DataDir: /usr/local/mysqlc/mysql-cluster

[TCP DEFAULT]
SendBufferMemory: 2M

#######################################
# Change HOST1 to the name of the NDB_MGMD host
# Change HOST2 to the name of the NDB_MGMD host
# Change HOST3 to the name of the NDB_MGMD host
# Change HOST4 to the name of the NDBD host
# Change HOST5 to the name of the NDBD host
# Change HOST6 to the name of the NDBD host
# Change HOST7 to the name of the NDBD host
# Change HOST8 to the name of the NDBD host
# Change HOST9 to the name of the NDBD host
#######################################

[NDB_MGMD]
NodeId: 1
HostName: 192.168.1.66
ArbitrationRank: 1

[NDB_MGMD]
NodeId: 2
HostName: 192.168.1.67
ArbitrationRank: 1

[NDBD]
NodeId: 3
HostName: 192.168.1.68

[NDBD]
NodeId: 4
HostName: 192.168.1.69

[NDBD]
NodeId: 5
HostName: 192.168.1.7

#
# Note: The following can be MySQLD connections or
#      NDB API application connecting to the cluster
#

[API]
NodeId: 6
HostName: 192.168.1.66
ArbitrationRank: 2

[API]
NodeId: 7
HostName: 192.168.1.67
ArbitrationRank: 2
royster
¹°·Ð mgm node »Ó ¾Æ´Ï¶ó ndb nodeµµ Àç½ÃÀÛ ½ÃŲ »óŰÚÁÒ.

¿ì¼±  ndb_show_tables À¯Æ¿·Î Á¤È®ÇÑ cluster Å×ÀÌºí ¼ö¸¦ È®ÀÎÇØº¸±¸¿ä.
shell> ndb_show_tables -t 1
shell> ndb_show_tables -t 2
shell> ndb_show_tables -t 3

BLOB data typeÀ» »ç¿ë ÇÏÁö´Âµµ üũ ÇØ¾ß°Ú½À´Ù
BLOB data typeÀÇ °æ¿ì BLOB µ¥ÀÌŸ¸¦ ÀúÀåÇϱâ À§Çؼ­ º°µµÀÇ Ãß°¡ tableÀ» »ç¿ëÇÏ°Ô µË´Ï´Ù.
ÀḸº¸
system 2
usertable 6139
UniqueHashIndex 891

blob µ¥ÀÌÅÍ Å¸ÀÔÀº »ç¿ëÇÏÁö ¾Ê°í ÀÖ½À´Ï´Ù.
3°³ ŸÀÔ ¸ðµÎ ÇÕÃĵµ 1¸¸°³°¡ ¸øµÅ´Âµ¥¿ä..
½ÇÁ¦·Î Å×ÀÌºí »ý¼º ½Ã³ª alter ·Î ndb ·Î º¯°æ ½Ã Got error 707 'No more table metadata records (increase MaxNoOfTables)' from NDB ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù;;;
ÀÌÀü±Û Cluster ¶óÀ̼¾½º ¹®ÀÇ 
´ÙÀ½±Û CLUSER Çϵå¿þ¾î »ç¾ç ¹× TABLESPACE °ü·ÃÇÏ¿© Áú¹®µå¸³´Ï´Ù.. 
MySQL Korea »çÀÌÆ®ÀÇ ÄÁÅÙÃ÷ ¼ÒÀ¯±ÇÀº (ÁÖ)»ó»óÀ̺ñÁî¿¡ ÀÖÀ¸¹Ç·Î ¹«´ÜÀüÀ縦 ±ÝÇÕ´Ï´Ù.
Copyright ¨Ï ssebiz All Rights Reserved.