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.

After repeating steps 1 through 3 on each of the physical hosts that will contain <strong>MySQL</strong><br />

<strong>Cluster</strong> nodes to be managed, the system looks like Figure 5 below.<br />

Figure 5: <strong>MySQL</strong> <strong>Cluster</strong> Manager Agents running on each host<br />

Creating & Starting a <strong>Cluster</strong><br />

Once the agents have been installed and started, the next step is to set up the entities that<br />

will make up the managed <strong>Cluster</strong>(s). As a prerequisite, the installation files for the version<br />

(s) of <strong>MySQL</strong> <strong>Cluster</strong> that are to be managed should be stored in a known location – in this<br />

example, /usr/local/mysql_X_Y_Z.<br />

As in step 4 from section 1.3.2 connect to the agent process running on any of the physical<br />

hosts – from there the whole process of creating all entities needed for the <strong>Cluster</strong> (site,<br />

hosts, packages and <strong>Cluster</strong>) and then starting the <strong>Cluster</strong> can be performed.<br />

1. Define the site – that is, the set of hosts that will run <strong>MySQL</strong> <strong>Cluster</strong> processes that need<br />

to be managed:<br />

mcm> create site --hosts=192.168.0.10,192.168.0.11,192.168.0.12,192.168.0.13<br />

mysite;<br />

2. Define the package(s) that will be used for the <strong>Cluster</strong>; further packages can be added<br />

later (for example when upgrading to the latest <strong>MySQL</strong> <strong>Cluster</strong> release). In this<br />

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

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

Saved successfully!

Ooh no, something went wrong!