免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1382 | 回复: 0
打印 上一主题 下一主题

MySQL Cluster1 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-27 15:41 |只看该作者 |倒序浏览
[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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP