MySQL Cluster Tutorial - cdn.oreillystatic.com
MySQL Cluster Tutorial - cdn.oreillystatic.com
MySQL Cluster Tutorial - cdn.oreillystatic.com
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Online Add Node<br />
One of the newer features in <strong>MySQL</strong> <strong>Cluster</strong> is online add node. This lets you add data<br />
nodes to an running cluster without having to rebuild it from scratch.<br />
To do this the following procedure must be followed:<br />
1. Add the necessary [ndbd] sections to config.ini<br />
2. Restart all management nodes with --initial or --reload<br />
3. Restart all data nodes<br />
4. Restart all <strong>MySQL</strong> or API nodes<br />
5. Start the new data nodes with --initial<br />
6. Run CREATE NODEGROUP x,y (where x and y are new nodes) to create a new data node<br />
group with the new nodes.<br />
7. Run ALTER TABLE … REORGANIZE PARTITION in <strong>MySQL</strong> to reorganize the data into the<br />
new nodes<br />
8. Run OPTIMZE TABLE … in <strong>MySQL</strong> to reclaim space after the reorganization<br />
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. 72/81