[ndb_mgmd]
hostname=192.168.161.80
datadir=/home/data/mysqlc/ndb_data1
NodeId=1
[ndbd default]
noofreplicas=2
[ndbd]
hostname=192.168.161.80
datadir=/home/data/mysqlc/ndb_data3
NodeId=3
[ndbd]
hostname=192.168.161.80
datadir=/home/data/mysqlc/ndb_data4
NodeId=4
[ndbd]
hostname=192.168.161.80
datadir=/home/data/mysqlc/ndb_data5
NodeId=5
[ndbd]
hostname=192.168.161.80
datadir=/home/data/mysqlc/ndb_data6
NodeId=6
[mysqld]
hostname=192.168.161.80
NodeId=50
[mysqld]
hostname=192.168.161.80
NodeId=51
[mysqld]
hostname=192.168.161.80
NodeId=52
[mysqld]
hostname=192.168.161.80
NodeId=53
[mysqld]
ndbcluster
datadir=/home/data/mysqlc/ndb_data50
basedir=/opt/soft/mysql-cluster-7.2.7
port=3350
[mysqld]
ndbcluster
datadir=/home/data/mysqlc/ndb_data51
basedir=/opt/soft/mysql-cluster-7.2.7
port=3351
[mysqld]
ndbcluster
datadir=/home/data/mysqlc/ndb_data52
basedir=/opt/soft/mysql-cluster-7.2.7
port=3352
[mysqld]
ndbcluster
datadir=/home/data/mysqlc/ndb_data53
basedir=/opt/soft/mysql-cluster-7.2.7
port=3353
/opt/soft/mysql-cluster-7.2.7/bin/ndb_mgm -e show
Connected to Management Server at: localhost:1186 Cluster Configuration --------------------- [ndbd(NDB)] 4 node(s) id=3 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0, Master) id=4 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0) id=5 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7, Nodegroup: 1) id=6 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7, Nodegroup: 1) [ndb_mgmd(MGM)] 1 node(s) id=1 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7) [mysqld(API)] 4 node(s) id=50 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7) id=51 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7) id=52 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7) id=53 @192.168.161.80 (mysql-5.5.25 ndb-7.2.7)
原文链接http://blog.csdn.net/ylqmf/article/details/7795497
下面给出另一个config.ini给大家作为参考
[NDBD DEFAULT] NoOfReplicas=2 DataMemory=644245094 IndexMemory=322122547 DataDir=/app/ndb/data BackupDataDir=/app/ndb/data/backup LockPagesInMainMemory=1 TimeBetweenLocalCheckpoints=20 TimeBetweenGlobalCheckpoints=1000 TimeBetweenEpochs=100 TimeBetweenWatchdogCheckInitial=60000 StringMemory=28 MaxNoOfTables=1024 MaxNoOfOrderedIndexes=2048 MaxNoOfUniqueHashIndexes=512 MaxNoOfAttributes=20480 MaxNoOfTriggers=10240 DiskCheckpointSpeedInRestart=100M FragmentLogFileSize=256M NoOfFragmentLogFiles=16 RedoBuffer=64M MaxNoOfConcurrentOperations=500000 TransactionInactiveTimeout=50000 MaxNoOfExecutionThreads=8 BatchSizePerLocalScan=512 ### 磁盘存储 SharedGlobalMemory=20M DiskPageBufferMemory=80M ###### COMPUTER DEFINITIONS ###### ### Datanode Computer #1 [COMPUTER] Id=1 HostName=datanode1.mysqlab.net ### Datanode Computer #2 [COMPUTER] Id=2 HostName=datanode2.mysqlab.net # Management Node Computer #1 [COMPUTER] Id=3 HostName=mgmtnode.mysqlab.net #### Data Nodes # Node group #1 [NDBD] Id=1 ExecuteOnComputer=1 [NDBD] Id=2 ExecuteOnComputer=2 # Node group #2 [NDBD] Id=3 ExecuteOnComputer=1 [NDBD] Id=4 ExecuteOnComputer=2 # Node group #3 [NDBD] Id=5 ExecuteOnComputer=1 [NDBD] Id=6 ExecuteOnComputer=2 # Node group #4 [NDBD] Id=7 ExecuteOnComputer=1 [NDBD] Id=8 ExecuteOnComputer=2 ### Management node [NDB_MGMD] Id=9 ExecuteOnComputer=3 # Anonymous API nodes [MYSQLD] Id=51 Hostname=mysqld01.mysqlab.net