Oracle 5.0 Reference Manual page 1552

Table of Contents

Advertisement

derivatives such as CentOS and Fedora) places the following entries in these machines'
files:
#
ndb1 /etc/hosts:
127.0.0.1
ndb1.cluster ndb1 localhost.localdomain localhost
#
ndb2 /etc/hosts:
127.0.0.1
ndb2.cluster ndb2 localhost.localdomain localhost
SUSE Linux (including OpenSUSE) places these entries in the machines'
#
ndb1 /etc/hosts:
127.0.0.1
localhost
127.0.0.2
ndb1.cluster ndb1
#
ndb2 /etc/hosts:
127.0.0.1
localhost
127.0.0.2
ndb2.cluster ndb2
In both instances,
ndb1
from DNS for ndb2.cluster, while
a public address for ndb1.cluster. The result is that each data node connects to the management
server, but cannot tell when any other data nodes have connected, and so the data nodes appear to
hang while starting.
Caution
You cannot mix
config.ini. For these reasons, the solution in such cases (other than to use
IP addresses for all
qualified host names from
cluster hosts.
Host computer type.
PC running a supported operating system installed to disk in a standard configuration, and running no
unnecessary services. The core operating system with standard TCP/IP networking capabilities should
be sufficient. Also for the sake of simplicity, we also assume that the file systems on all hosts are set up
identically. In the event that they are not, you should adapt these instructions accordingly.
Network hardware.
along with the proper drivers for the cards, and that all four hosts are connected through a standard-
issue Ethernet networking appliance such as a switch. (All machines should use network cards with
the same throughout. That is, all four machines in the cluster should have 100 Mbps cards or all four
machines should have 1 Gbps cards.) MySQL Cluster works in a 100 Mbps network; however, gigabit
Ethernet provides better performance.
Important
MySQL Cluster is not intended for use in a network for which throughput is
less than 100 Mbps or which experiences a high degree of latency. For this
reason (among others), attempting to run a MySQL Cluster over a wide area
network such as the Internet is not likely to be successful, and is not supported
in production.
Sample data.
We use the
site (see http://dev.mysql.com/doc/index-other.html). We assume that each machine has sufficient
memory for running the operating system, required MySQL Cluster processes, and (on the data nodes)
storing the database.
For general information about installing MySQL, see
information about installation of MySQL Cluster on Linux and other Unix-like operating systems, see
Section 17.2.1, "Installing MySQL Cluster on
MySQL Cluster Installation and Upgrades
routes
ndb1.cluster
routes
ndb2
localhost
config.ini HostName
/etc/hosts
Each host computer in our installation scenario is an Intel-based desktop
Standard 100 Mbps or 1 gigabit Ethernet cards are installed on each machine,
database which is available for download from the MySQL Web
world
Linux".
1532
to a loopback IP address, but gets a public IP address
to a loopback address and obtains
ndb2.cluster
and other host names or IP addresses in
entries) is to remove the fully
and use these in
Chapter 2, Installing and Upgrading
/etc/hosts
files:
/etc/hosts
for all
config.ini
MySQL. For

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents