hi experts,
I’m new to percona cluster.
I just installed it:
sudo apt-get install percona-xtradb-cluster-client-5.5
percona-xtradb-cluster-server-5.5 percona-xtrabackup
and now try to make it running however without access.
I created /etc/mysql/my.cnf on all 3 nodes which look like this one from the first node:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
datadir=/var/lib/mysql/
Path to Galera library
wsrep_provider=/usr/lib64/libgalera_smm.so
Cluster connection URL contains the IPs of node#1, node#2 and node#3
#wsrep_cluster_address=gcomm://xxx.xx.xxx.xx1,xxx.xx.xxx.xx2,xxx.xx.xxx.xx3
In order for Galera to work correctly binlog format should be ROW
binlog_format=ROW
MyISAM storage engine has only experimental support
default_storage_engine=InnoDB
This is a recommended tuning variable for performance
innodb_locks_unsafe_for_binlog=1
This changes how InnoDB autoincrement locks are managed and is a requirement for Galera
innodb_autoinc_lock_mode=2
Node #1 address
wsrep_node_address=xxx.xx.xxx.xx1
SST method
wsrep_sst_method=xtrabackup
Cluster name
wsrep_cluster_name=my_debian_cluster
Authentication for SST method
wsrep_sst_auth=“username:password”
this way mysql starts, but when I comment out wsrep_cluster_address:
wsrep_cluster_address=gcomm://xxx.xx.xxx.xx1,xxx.xx.xxx.xx2,xxx.xx.xxx.xx3
it won’t start.
the first node was started this way:
/etc/init.d/mysql start --wsrep-cluster-address=“gcomm://”
the two others this way:
/etc/init.d/mysql start
so none of the nodes accepts wsrep_cluster_address option in my.cnf.
OS: debian 6
mysql> show status like ‘wsrep%’; from 3 nodes looks like this:
±---------------------------±----------------------------------+
| Variable_name | Value |
±---------------------------±----------------------------------+
| wsrep_local_state_uuid | |
| wsrep_protocol_version | 18446744073709551615 |
| wsrep_last_committed | 18446744073709551615 |
| wsrep_replicated | 0 |
| wsrep_replicated_bytes | 0 |
| wsrep_received | 0 |
| wsrep_received_bytes | 0 |
| wsrep_local_commits | 0 |
| wsrep_local_cert_failures | 0 |
| wsrep_local_bf_aborts | 0 |
| wsrep_local_replays | 0 |
| wsrep_local_send_queue | 0 |
| wsrep_local_send_queue_avg | 0.000000 |
| wsrep_local_recv_queue | 0 |
| wsrep_local_recv_queue_avg | 0.000000 |
| wsrep_flow_control_paused | 0.000000 |
| wsrep_flow_control_sent | 0 |
| wsrep_flow_control_recv | 0 |
| wsrep_cert_deps_distance | 0.000000 |
| wsrep_apply_oooe | 0.000000 |
| wsrep_apply_oool | 0.000000 |
| wsrep_apply_window | 0.000000 |
| wsrep_commit_oooe | 0.000000 |
| wsrep_commit_oool | 0.000000 |
| wsrep_commit_window | 0.000000 |
| wsrep_local_state | 0 |
| wsrep_local_state_comment | Initialized |
| wsrep_cert_index_size | 0 |
| wsrep_causal_reads | 0 |
| wsrep_incoming_addresses | |
| wsrep_cluster_conf_id | 18446744073709551615 |
| wsrep_cluster_size | 0 |
| wsrep_cluster_state_uuid | |
| wsrep_cluster_status | Disconnected |
| wsrep_connected | OFF |
| wsrep_local_index | 18446744073709551615 |
| wsrep_provider_name | Galera |
| wsrep_provider_vendor | Codership Oy <info@codership.com> |
| wsrep_provider_version | 2.5(r150) |
| wsrep_ready | OFF
what am I doing wrong?
thank you indeed!