Escolar Documentos
Profissional Documentos
Cultura Documentos
Release 1.0
Seppo Jaakola, Codership
Alexey Yurchenko, Codership
Contents
1.Galera Cluster
2.Advanced Features
3.Release 1.0
4.Benchmarking
5.Installation & Management
6.Summary
10/27/11
Galera Cluster
clients
MySQL
MySQL
MySQL
wsrep
wsrep
wsrep
G a l e r a R e p l i c a t i o n
10/27/11
Galera Cluster
clients
Transparent
connections
MySQL
MySQL
MySQL
wsrep
wsrep
wsrep
G a l e r a R e p l i c a t i o n
10/27/11
Galera Cluster
clients
Transparent
connections
MySQL
MySQL
MySQL
wsrep
wsrep
wsrep
Multimaster
G a l e r a R e p l i c a t i o n
10/27/11
Galera Cluster
clients
Reads
&
Writes
Reads
&
Writes
Reads
&
Writes
MySQL
MySQL
MySQL
wsrep
wsrep
wsrep
Transparent
connections
Multimaster
G a l e r a R e p l i c a t i o n
10/27/11
Galera Cluster
clients
Transparent
connections
MySQL
MySQL
MySQL
wsrep
wsrep
wsrep
G a l e r a R e p l i c a t i o n
10/27/11
Multimaster
Synchronous
replication
7
Galera Replication
Transparency
10/27/11
High Availability
Write scalability
Codership @ PerconaLive London 2011
Galera Replication
Global Transaction ID
Failure Detection
Automatic node join/provisioning
10/27/11
Advanced Features
Synchronous Replication
Client
commit
trx
wsrep
wsrep
wsrep
Galera Replication
10/27/11
11
Synchronous Replication
Transaction is replicated
in all nodes => HA
Client
commit
trx
wsrep
wsrep
WS
wsrep
WS
Galera Replication
10/27/11
12
Synchronous Replication
Client
trx
wsrep
wsrep
trx
wsrep
Galera Replication
10/27/11
13
10/27/11
14
Parallel Applying
10/27/11
15
Parallel Applying
MySQL
applier
applier
Pre-configured
applier threads
Replication
Applier control
WS
WS WS WS
Slave queue
certification
test
Group Communication
10/27/11
16
Global Transaction ID
10/27/11
17
Node Provisioning
10/27/11
18
Clients
10.0.0.2
10.0.0.1
MySQL
MySQL
10.0.0.3
MySQL
GaleraReplication
A c t i v e
10/27/11
c l u s t e r
Codership @ PerconaLive London 2011
19
10.0.0.2
10.0.0.1
SST Request
MySQL
GaleraReplication
A c t i v e
10/27/11
MySQL
MySQL
wsrep_cluster_address= 10.0.0.2
c l u s t e r
Codership @ PerconaLive London 2011
Joining node
20
Joiner node
1. mysqldump
MySQL
MySQL
MySQL
GaleraReplication
10/27/11
21
MySQL
2. load
Joiner node
MySQL
GaleraReplication
10/27/11
22
MySQL
MySQL
MySQL
GaleraReplication
A c t i v e
10/27/11
Catch up
WS
c l u s t e r
23
MySQL
MySQL
MySQL
GaleraReplication
A c t i v e
10/27/11
c l u s t e r
24
Release 1.0
New Features
10/27/11
26
MySQL Support
MySQL 5.5
MySQL 5.1
Percona Server
10/27/11
Developed by Percona
https://code.launchpad.net/~perconadev/percona
server/perconaservergalera5.5.15
27
10/27/11
Node Provisioning
State Transfer
Rolling Schema update
Codership @ PerconaLive London 2011
28
10/27/11
29
Synchronous Reads
Client
WRITE
READ
MySQL
MySQL
wsrep
wsrep
G a l e r a R e p l i c a t i o n
10/27/11
30
Encrypted Replication
10/27/11
31
Split-Brain
SYNCED
MASTER
10/27/11
BY REPLICATION
MASTER
32
Split-Brain
10/27/11
X
Codership @ PerconaLive London 2011
33
Resolves split-brain
Stateless
10/27/11
34
WAN Replication
Client
garbd
Client
SSL
Data Center 1
10/27/11
Data Center 2
35
Benchmarking
Benchmarking
10/27/11
37
10/27/11
38
Installing MySQL/Galera
Distributions choices:
1.Pre-built RPM or Debian package
2.demo tar distribution
3.Source build
10/27/11
40
Demo Distribution
10/27/11
41
wsrep Variables
mysql>showvariableslike'wsrep%';
+++
|Variable_name|Value|
+++
|wsrep_auto_increment_control|OFF|
|wsrep_certify_nonPK|OFF|
|wsrep_cluster_address|gcomm://?gmcast.listen_addr=tcp://127.0.0.1:4568|
|wsrep_cluster_name|my_wsrep_cluster|
|wsrep_convert_LOCK_to_trx|OFF|
|wsrep_data_home_dir|/codership/data/galeranode1/|
|wsrep_dbug_option||
|wsrep_debug|OFF|
|wsrep_drupal_282555_workaround|OFF|
|wsrep_local_cache_size|20971520|
|wsrep_max_ws_rows|65636|
|wsrep_max_ws_size|0|
|wsrep_node_incoming_address|10.1.198.1:3307|
|wsrep_node_name|node1|
|wsrep_notify_cmd||
|wsrep_on|ON|
|wsrep_provider|/codership/node1/mysql5.1.52/galera/lib/libmmgalera++.so|
|wsrep_provider_options||
|wsrep_retry_autocommit|OFF|
|wsrep_slave_threads|1|
|wsrep_sst_auth|test:testpass|
|wsrep_sst_donor||
|wsrep_sst_method|mysqldump|
|wsrep_sst_receive_address|AUTO|
|wsrep_start_position|00000000000000000000000000000000:1|
|wsrep_ws_persistency|OFF|
10/27/11
Codership @ PerconaLive London 2011
+++
42
wsrep Status
|wsrep_local_state_uuid|a398eaf82aba11e00800432d0098b829|
|wsrep_last_committed|2989366|
|wsrep_replicated|122|
|wsrep_replicated_bytes|161514094|
|wsrep_received|0|
|wsrep_received_bytes|0|
|wsrep_local_commits|110|
|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.007752|
|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|1.750000|
|wsrep_apply_oooe|0.000000|
|wsrep_apply_oool|0.000000|
|wsrep_apply_window|1.000000|
|wsrep_local_state|4|
|wsrep_local_state_comment|Synced(6)|
|wsrep_cluster_conf_id|4|
|wsrep_cluster_size|2|
|wsrep_cluster_state_uuid|a398eaf82aba11e00800432d0098b829|
|wsrep_cluster_status|Primary|
|wsrep_local_index|1|
10/27/11
Codership @ PerconaLive London 2011
|wsrep_ready|ON|
43
Severalnines ClusterControl
Severalnines has developed Galera
support for the ClusterControl tool for:
10/27/11
Configurator
Monitoring
Management
44
ClusterControl - Configurator
1.Fill your architecture specs in:
http://www.severalnines.com/galeraconfigurator
10/27/11
45
10/27/11
46
10/27/11
47
10/27/11
48
ClusterControl
Use in management server:
10/27/11
49
Summary
Galera Support
10/27/11
Local timezone
Local Language & Culture
Codership on level 3 support to back up
51
Summary
Galera is Replication Redefined
Severalnines ClusterControl
Support available
10/27/11
FromDual
Codership @ PerconaLive London 2011
52
Web-site: http://www.codership.com
Downloads: https://launchpad.net/codership-mysql
10/27/11
53