- 论坛徽章:
- 0
|
[root@managementserver mysql-cluster]# cat config.ini
[NDBD DEFAULT]
NoOfReplicas=2 # Number of replicas
DataMemory=1024M # How much memory to allocate for data storage
IndexMemory=128M # How much memory to allocate for index storage
# For DataMemory and IndexMemory, we have used the
# default values. Since the "world" database takes up
# only about 500KB, this should be more than enough for
# this example Cluster setup.
MaxNoOfConcurrentOperations=65535
MaxNoOfAttributes=6000
MaxNoOfOrderedIndexes=256
MaxNoOfUniqueHashIndexes=128
# TCP/IP options:
[TCP DEFAULT]
portnumber=2202 # This the default; however, you can use any
# port that is free for all the hosts in cluster
# Note: It is recommended beginning with MySQL 5.0 that
# you do not specify the portnumber at all and simply allow
# the default value to be used instead
SendBufferMemory=128M
# Management process options:
[NDB_MGMD]
hostname=10.20.15.203 # Hostname or IP address of MGM node
datadir=/usr/local/mysql-cluster # Directory for MGM node logfiles
# Options for data node "A":
[NDBD]
# (one [NDBD] section per data node)
hostname=10.20.15.106 # Hostname or IP address
datadir=/usr/local/mysql/data
# Options for data node "B":
[NDBD]
hostname=10.20.15.107 # Hostname or IP address
datadir=/usr/local/mysql/data
# SQL node options:
[MYSQLD]
hostname=10.20.15.201 # Hostname or IP address
# (additional mysqld connections can be
# specified for this node for various
# purposes such as running ndb_restore)
[MYSQLD]
hostname=10.20.15.202
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/74751/showart_1669234.html |
|