Cluster mysql

1. Cluster mysql

mateus schott
mschott

(usa Debian)

Enviado em 17/01/2014 - 16:29h

Boa tarde! pessoal estou testando um cluster mysql com 3 máquinas CentOS 6.5, vasculhei a internet mas não achei nenhum tutorial que funcionasse, alguém ai já teve experiência com esse tipo de senário??


  


2. Re: Cluster mysql

Bruno Rogério Fernandes
brunorf

(usa Arch Linux)

Enviado em 17/01/2014 - 16:50h

Que tipo de cluster? De alta disponibilidade ou de alto desempenho?
Quais foram os problemas encontrados nas fontes que você buscou na Internet?


3. Re: Cluster mysql

mateus schott
mschott

(usa Debian)

Enviado em 20/01/2014 - 09:12h

de disponibilidade, usei as opções que achei nos tutorias mas o mysql da erro de configuração, e meu manegement não conecta nos outros nodes.

-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 187.60.xx.xx)
id=3 (not connected, accepting connect from 187.60.xx.xx)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @187.60.xx.xx (Version: 5.0.96)

[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from any host)
id=5 (not connected, accepting connect from any host)


Me basiei nesse tutorial:
http://www.vivaolinux.com.br/artigo/Cluster-MySQL-Instalacao-e-configuracao


4. Re: Cluster mysql

mateus schott
mschott

(usa Debian)

Enviado em 20/01/2014 - 09:53h

Estou usando essa configuração no meu management, essa máquina tem o banco que precisa ser replicado.

vi /etc/my.cf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
#ndbcluster
#ndb-connectstring=mysql-mng

#[mysql_cluster]
#ndb-connectstring=mysql-mng

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


se descomento as linhas
#ndbcluster
#ndb-connectstring=mysql-mng

#[mysql_cluster]
#ndb-connectstring=mysql-mng

o mysql não sobe.


Nos logs do mysql me retorna isso:
140120 9:42:03 [Note] /usr/libexec/mysqld: Normal shutdown

140120 9:42:03 [Note] Event Scheduler: Purging the queue. 0 events
140120 9:42:03 InnoDB: Starting shutdown...
140120 9:42:06 InnoDB: Shutdown completed; log sequence number 0 54630
140120 9:42:06 [Note] /usr/libexec/mysqld: Shutdown complete

140120 09:42:06 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140120 09:42:06 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140120 9:42:06 InnoDB: Initializing buffer pool, size = 8.0M
140120 9:42:06 InnoDB: Completed initialization of buffer pool
140120 9:42:06 InnoDB: Started; log sequence number 0 54630
140120 9:42:06 [ERROR] /usr/libexec/mysqld: unknown option '--ndbcluster'
140120 9:42:06 [ERROR] Aborting

140120 9:42:06 InnoDB: Starting shutdown...
140120 9:42:12 InnoDB: Shutdown completed; log sequence number 0 54630
140120 9:42:12 [Note] /usr/libexec/mysqld: Shutdown complete

140120 09:42:12 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended




  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts