
Premetto che per creare un cluster “vero” con una ridondanza “vera” sono necessarie 3 macchine.
a) Nodo dati 1 — es.: IP 192.168.100.101
b) Nodo dati 2 — es.: IP 192.168.100.102
c) Nodo di Management dei 2 nodi — es.: IP 192.168.100.103
Installiamo MySQL su entrambi i nodi dati con il comando:
# sudo apt-get install mysql-server
Durante il setup vi verrà chiesto di inserire la password di root del database. (Importante non perderla)
Passiamo ora ad installare e configurare il Nodo di Management.
Creiamo il seguente file /etc/mysql/ndb_mgmd.cnf con:
# sudo nano /etc/mysql/ndb_mgmd.cnf
e inserite al suo interno le seguenti lines:
[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=80M # How much memory to allocate for data storage
IndexMemory=18M # 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...
Leggi il seguito »
- Articolo precedente: Due Koala fanno sesso durante un’intervista del tennista Roddick
- Articolo successivo: Ovi Maps Racing presto su Ovi Store
SEGNALA / INVIA QUESTO POST:
Hai trovato questo articolo interessante? Iscriviti GRATIS ai nostri feeds!


