31.07.2013 Views

MySQL Cluster Tutorial - cdn.oreillystatic.com

MySQL Cluster Tutorial - cdn.oreillystatic.com

MySQL Cluster Tutorial - cdn.oreillystatic.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Configuration of <strong>MySQL</strong> <strong>Cluster</strong><br />

File /opt/mysqlcluster/config.ini:<br />

[ndbd default]<br />

NoOfReplicas = 2<br />

DataMemory = 80M<br />

IndexMemory = 10M<br />

DataDir = /opt/mysqlcluster/ndb<br />

[ndb_mgmd default]<br />

DataDir = /opt/mysqlcluster/ndb<br />

[tcp default]<br />

[ndb_mgmd]<br />

Id = 1<br />

HostName = localhost<br />

[ndbd]<br />

Id = 3<br />

HostName = localhost<br />

[ndbd]<br />

Id = 4<br />

HostName = localhost<br />

[mysqld]<br />

Id = 20<br />

HostName = localhost<br />

[mysqld]<br />

Id = 21<br />

HostName = localhost<br />

[mysqld]<br />

Id = 22<br />

HostName = localhost<br />

[mysqld]<br />

Id = 23<br />

HostName = localhost<br />

[api]<br />

[api]<br />

[api]<br />

[api]<br />

Configuration of <strong>MySQL</strong> <strong>Cluster</strong><br />

File /opt/mysqlcluster/<br />

config_Slave.ini:<br />

[ndbd default]<br />

NoOfReplicas = 1<br />

DataMemory = 80M<br />

IndexMemory = 10M<br />

DataDir = /opt/mysqlcluster/ndb_Slave<br />

[ndb_mgmd default]<br />

PortNumber = 1187<br />

DataDir = /opt/mysqlcluster/ndb_Slave<br />

[tcp default]<br />

[ndb_mgmd]<br />

Id = 1<br />

HostName = localhost<br />

[ndbd]<br />

Id = 3<br />

HostName = localhost<br />

[mysqld]<br />

Id = 20<br />

HostName = localhost<br />

[api]<br />

[api]<br />

[api]<br />

[api]<br />

Copyright © 2010, Oracle and/or its affiliates. All rights reserved. 12/81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!