MariaDB10 Galera Cluster

MariaDB10 Galera Cluster
參考文檔:

主要功能:php

  • 同步複製
  • 真正的multi-master,即全部節點能夠同時讀寫數據庫
  • 自動的節點成員控制,失效節點自動被清除
  • 新節點加入數據自動複製
  • 真正的並行複製,行級
  • 用戶能夠直接鏈接集羣,使用感覺上與MySQL徹底一致

優點:
由於是多主,因此不存在Slavelag(延遲)
不存在丟失交易的狀況
同時具備讀和寫的擴展能力
更小的客戶端延遲
節點間數據是同步的,而Master/Slave模式是異步的,不一樣slave上的binlog多是不一樣的
html


環境:
CentOS 7.1 x64
mariadb-galera-10.0.24
galera-25.3.14
說明: MariaDB Galera Cluster目前僅支持linux平臺,mariadb-10.1.13雖然直接將wsrep API庫內嵌到了mariadb,但實際測試,集羣沒法配置成功,官方說明也模棱兩可,看以後再進一步測試

防止腦裂,Galera Cluster最少須要三節點
db00: 192.168.8.100
db01: 192.168.8.101
db02: 192.168.8.102

一.安裝
請參看


二.配置集羣

1.建立集羣用戶(全部節點)node

systemctl start mysqlmysql

mysql_secure_installationlinux

GRANT ALL ON *.* TO 'galera'@'192.168.8.%' IDENTIFIED BY 'mypassword';web

FLUSH PRIVILEGES; sql

說明:在選用的初始化節點上建立該用戶便可,其它節點加入集羣后會自動同步數據庫


https://mariadb.com/kb/en/mariadb/galera-cluster-system-variables/#wsrep_onbootstrap

2.定義集羣通用配置(全部節點)

cat >/etc/my.cnf.d/galera_common.cnf <<HEREcentos

[mysqld]

wsrep-cluster-name = "test_cluster"

wsrep-provider = /usr/lib64/galera/libgalera_smm.so 

wsrep-provider-options = "gcache.size=256M;gcache.page_size=128M"

wsrep-sst-auth = "galera:mypassword"

binlog-format = row

default-storage-engine = InnoDB

innodb-doublewrite = 1

innodb-autoinc-lock-mode = 2

innodb-flush-log-at-trx-commit = 2

innodb-locks-unsafe-for-binlog = 1

HERE

sed -i '1i !includedir /etc/my.cnf.d/' /etc/my.cnf

提示:配置集羣的最簡配置能夠參看/opt/mariadb/support-files/wsrep.cnf,且有相關解釋,很是人性化

# Options that need to be customized:

- wsrep_provider

- wsrep_cluster_address

- wsrep_sst_auth

 

# The rest of defaults should work out of the box.

3.初始化集羣(db00)

db00: 192.168.8.100


cat >/etc/my.cnf.d/galera_db00.cnf <<HERE

[mysqld]

wsrep-node-name = "db00"

wsrep-sst-receive-address = 192.168.8.100

wsrep-node-incoming-address = 192.168.8.100

bind-address = 192.168.8.100

wsrep_sst_method = rsync

wsrep-cluster-address = gcomm://192.168.8.101,192.168.8.102

HERE


yum -y install lsof rsync

/etc/init.d/mysql stop

/etc/init.d/mysql start --wsrep-new-cluster

SHOW STATUS LIKE 'wsrep%'; 


[root@db00 ~]# /etc/init.d/mysql stop

Shutting down MySQL.. SUCCESS! 

[root@db00 ~]# /etc/init.d/mysql start --wsrep-new-cluster

Starting MySQL.. SUCCESS! 


說明:用哪一個節點來初始化無所謂,早期的版本mariadb-galera-10.0.x初始化,是用空值gcomm://來表示新的集羣,mariadb-10.1.x版本已經廢止了,wsrep-new-cluster參數取代

wsrep_sst_method

 

  • Description: Method used for taking the state snapshot transfer (sst). The command wsrep_sst_will then be called, so a custom script can be written for this purpose. See Codership Scriptable State Snapshop page for details. Existing valid values include rsync (the default), mysqldumpxtrabackup and xtrabackup-v2, which use those respective methods to perform the state snapshop transfer, or skipskip skips the transfer and should only be used temporarily, for example when starting the cluster and manually restoring data. See also the mysqldump and Xtrabackup articles. Note that the rsync and mysqldump SST methods support GTID. However, the xtrabackup-v2and xtrabackup SST methods currently do not support GTID. The xtrabackup-v2 sst method was introduced in MariaDB Galera 5.5.37 and 10.0.10.
  • Scope: Global
  • Dynamic: Yes
  • Default Value: rsync
  • Valid Values: rsyncmysqldumpxtrabackupxtrabackup-v2

提示:rsync(須要安裝rsync,lsof), rsync,mysqldump都會有READ LOCK的狀況,xtrabackup-v2沒有,但也有若干限制,請根據實際業務來選定或調整同步方式

xtrabackup安裝請參看MariaDB備份還原修復

實測,開始是以rsync方式同步的集羣,後改成xtrabackup-v2,很是順暢,能夠無縫切換同步方式



4.配置並啓動其他集羣節點(db01,db02)

db01: 192.168.8.101


cat >/etc/my.cnf.d/galera_db01.cnf <<HERE

[mysqld]

wsrep-node-name = "db01"

wsrep-sst-receive-address = 192.168.8.101

wsrep-node-incoming-address = 192.168.8.101

bind-address = 192.168.8.101

wsrep-sst-method = rsync

wsrep-cluster-address = gcomm://192.168.8.100,192.168.8.102

HERE


yum -y install lsof rsync

/etc/init.d/mysql restart

[root@db01 ~]# /etc/init.d/mysql restart 

Shutting down MySQL... SUCCESS!

Starting MySQL..SST in progress, setting sleep higher. SUCCESS! 


db02: 192.168.8.102


cat >/etc/my.cnf.d/galera_db02.cnf <<HERE

[mysqld]

wsrep-node-name = "db02"

wsrep-sst-receive-address = 192.168.8.102

wsrep-node-incoming-address = 192.168.8.102

bind-address = 192.168.8.102

wsrep-sst-method = rsync

wsrep-cluster-address = gcomm://192.168.8.100,192.168.8.101

HERE


yum -y install lsof rsync

/etc/init.d/mysql restart

[root@db02 ~]# /etc/init.d/mysql restart

Shutting down MySQL... SUCCESS!

Starting MySQL..SST in progress, setting sleep higher. SUCCESS! 


5.查看集羣狀態

[root@db00 ~]# netstat -tunlp|grep mysqld

tcp            0 192.168.8.100:3306      0.0.0.0:*               LISTEN      15429/mysqld        

tcp            0 0.0.0.0:4567            0.0.0.0:*               LISTEN      15429/mysqld 

3306負載數據存儲,4567負載集羣維護


SHOW STATUS LIKE 'wsrep%'; 


[root@db00 ~]# mysql -uroot -p

Enter password: 

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 7

Server version: 10.0.24-MariaDB-wsrep MariaDB Server, wsrep_25.13.raf7f02e


Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> SHOW STATUS LIKE 'wsrep%';

+------------------------------+----------------------------------------------------------+

| Variable_name                | Value                                                    |

+------------------------------+----------------------------------------------------------+

| wsrep_local_state_uuid       | 5cbe919b-025c-11e6-b660-c77a70955301                     |

| wsrep_protocol_version       | 7                                                        |

| wsrep_last_committed         | 0                                                        |

| wsrep_replicated             | 0                                                        |

| wsrep_replicated_bytes       | 0                                                        |

| wsrep_repl_keys              | 0                                                        |

| wsrep_repl_keys_bytes        | 0                                                        |

| wsrep_repl_data_bytes        | 0                                                        |

| wsrep_repl_other_bytes       | 0                                                        |

| wsrep_received               | 14                                                       |

| wsrep_received_bytes         | 1552                                                     |

| wsrep_local_commits          | 0                                                        |

| wsrep_local_cert_failures    | 0                                                        |

| wsrep_local_replays          | 0                                                        |

| wsrep_local_send_queue       | 0                                                        |

| wsrep_local_send_queue_max   | 1                                                        |

| wsrep_local_send_queue_min   | 0                                                        |

| wsrep_local_send_queue_avg   | 0.000000                                                 |

| wsrep_local_recv_queue       | 0                                                        |

| wsrep_local_recv_queue_max   | 2                                                        |

| wsrep_local_recv_queue_min   | 0                                                        |

| wsrep_local_recv_queue_avg   | 0.071429                                                 |

| wsrep_local_cached_downto    | 18446744073709551615                                     |

| wsrep_flow_control_paused_ns | 0                                                        |

| 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            | 4                                                        |

| wsrep_local_state_comment    | Synced                                                   |

| wsrep_cert_index_size        | 0                                                        |

| wsrep_causal_reads           | 0                                                        |

| wsrep_cert_interval          | 0.000000                                                 |

| wsrep_incoming_addresses     | 192.168.8.102:3306,192.168.8.100:3306,192.168.8.101:3306 |

| wsrep_evs_delayed                                                                    |

| wsrep_evs_evict_list                                                                 |

| wsrep_evs_repl_latency       | 0/0/0/0/0                                                |

| wsrep_evs_state              | OPERATIONAL                                              |

| wsrep_gcomm_uuid             | 5cbdfa05-025c-11e6-9c91-7700903d3b22                     |

| wsrep_cluster_conf_id        | 7                                                        |

| wsrep_cluster_size           | 3                                                        |

| wsrep_cluster_state_uuid     | 5cbe919b-025c-11e6-b660-c77a70955301                     |

| wsrep_cluster_status         | Primary                                                  |

| wsrep_connected              | ON                                                       |

| wsrep_local_bf_aborts        | 0                                                        |

| wsrep_local_index            | 1                                                        |

| wsrep_provider_name          | Galera                                                   |

| wsrep_provider_vendor        | Codership Oy                         |

| wsrep_provider_version       | 25.3.14(r3560)                                           |

| wsrep_ready                  | ON                                                       |

| wsrep_thread_count           | 2                                                        |

+------------------------------+----------------------------------------------------------+

 

57 rows in set (0.00 sec)

wsrep_readyON,則說明MariaDB Galera 集羣已經正確運行了。

wsrep_cluster_size 標明瞭組成集羣的節點個數

 

如上,3個集羣節點都己成功正常運行。


6.統一修改集羣地址並重啓

wsrep-cluster-address = gcomm://192.168.8.100,192.168.8.101,192.168.8.102


MariaDB [(none)]> SHOW VARIABLES LIKE 'wsrep%'\G

*************************** 1. row ***************************

Variable_name: wsrep_auto_increment_control

        Value: ON

*************************** 2. row ***************************

Variable_name: wsrep_causal_reads

        Value: OFF

*************************** 3. row ***************************

Variable_name: wsrep_certify_nonpk

        Value: ON

*************************** 4. row ***************************

Variable_name: wsrep_cluster_address

        Value: gcomm://192.168.8.100,192.168.8.101,192.168.8.102

*************************** 5. row ***************************

Variable_name: wsrep_cluster_name

        Value: test_cluster

*************************** 6. row ***************************

Variable_name: wsrep_convert_lock_to_trx

        Value: OFF

*************************** 7. row ***************************

Variable_name: wsrep_data_home_dir

        Value: /opt/mariadb/data/

*************************** 8. row ***************************

Variable_name: wsrep_dbug_option

        Value: 

*************************** 9. row ***************************

Variable_name: wsrep_debug

        Value: OFF

*************************** 10. row ***************************

Variable_name: wsrep_desync

        Value: OFF

*************************** 11. row ***************************

Variable_name: wsrep_dirty_reads

        Value: OFF

*************************** 12. row ***************************

Variable_name: wsrep_drupal_282555_workaround

        Value: OFF

*************************** 13. row ***************************

Variable_name: wsrep_forced_binlog_format

        Value: NONE

*************************** 14. row ***************************

Variable_name: wsrep_load_data_splitting

        Value: ON

*************************** 15. row ***************************

Variable_name: wsrep_log_conflicts

        Value: OFF

*************************** 16. row ***************************

Variable_name: wsrep_max_ws_rows

        Value: 131072

*************************** 17. row ***************************

Variable_name: wsrep_max_ws_size

        Value: 1073741824

*************************** 18. row ***************************

Variable_name: wsrep_mysql_replication_bundle

        Value: 0

*************************** 19. row ***************************

Variable_name: wsrep_node_address

        Value: 

*************************** 20. row ***************************

Variable_name: wsrep_node_incoming_address

        Value: 192.168.8.100

*************************** 21. row ***************************

Variable_name: wsrep_node_name

        Value: db00

*************************** 22. row ***************************

Variable_name: wsrep_notify_cmd

        Value: 

*************************** 23. row ***************************

Variable_name: wsrep_on

        Value: ON

*************************** 24. row ***************************

Variable_name: wsrep_osu_method

        Value: TOI

*************************** 25. row ***************************

Variable_name: wsrep_provider

        Value: /usr/lib64/galera/libgalera_smm.so

*************************** 26. row ***************************

Variable_name: wsrep_provider_options

        Value: base_dir = /opt/mariadb/data/; base_host = 192.168.8.100; base_port = 4567; cert.log_conflicts = no; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.info_log_mask = 0; evs.install_timeout = PT7.5S; evs.join_retrans_period = PT1S; evs.keepalive_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.use_aggregate = true; evs.user_send_window = 2; evs.version = 0; evs.view_forget_timeout = P1D; gcache.dir = /opt/mariadb/data/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /opt/mariadb/data//galera.cache; gcache.page_size = 128M; gcache.size = 256M; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.listen_addr = tcp://0.0.0.0:4567; gmcast.mcast_addr = ; gmcast.mcast_ttl = 1; gmcast.peer_timeout = PT3S; gmcast.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 192.168.8.100; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = P30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; repl.proto_max = 7; socket.checksum = 2; 

*************************** 27. row ***************************

Variable_name: wsrep_recover

        Value: OFF

*************************** 28. row ***************************

Variable_name: wsrep_replicate_myisam

        Value: OFF

*************************** 29. row ***************************

Variable_name: wsrep_restart_slave

        Value: OFF

*************************** 30. row ***************************

Variable_name: wsrep_retry_autocommit

        Value: 1

*************************** 31. row ***************************

Variable_name: wsrep_slave_fk_checks

        Value: ON

*************************** 32. row ***************************

Variable_name: wsrep_slave_threads

        Value: 1

*************************** 33. row ***************************

Variable_name: wsrep_slave_uk_checks

        Value: OFF

*************************** 34. row ***************************

Variable_name: wsrep_sst_auth

        Value: ********

*************************** 35. row ***************************

Variable_name: wsrep_sst_donor

        Value: 

*************************** 36. row ***************************

Variable_name: wsrep_sst_donor_rejects_queries

        Value: OFF

*************************** 37. row ***************************

Variable_name: wsrep_sst_method

        Value: rsync

*************************** 38. row ***************************

Variable_name: wsrep_sst_receive_address

        Value: 192.168.8.100

*************************** 39. row ***************************

Variable_name: wsrep_start_position

        Value: 5cbe919b-025c-11e6-b660-c77a70955301:0

*************************** 40. row ***************************

Variable_name: wsrep_sync_wait

        Value: 0

 

40 rows in set (0.00 sec)



三.測試

A.任意節點讀寫

1.在節點db02上導入了一個zabbix.sql的庫

[root@db02 ~]# mysql -uroot -p -e "CREATE DATABASE IF NOT EXISTS zabbix CHARACTER SET utf8"

Enter password: 

[root@db02 ~]# mysql -uroot -p zabbix

Enter password:

2.在db01上查看

[root@db01 ~]# mysql -uroot -p

Enter password: 

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 10

Server version: 10.0.24-MariaDB-wsrep MariaDB Server, wsrep_25.13.raf7f02e


Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> SHOW DATABASES;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| zabbix             |

+--------------------+

4 rows in set (0.01 sec)


MariaDB [(none)]> USE zabbix;

Database changed


MariaDB [zabbix]> SELECT alias,name,surname FROM users;

+-------+--------+---------------+

| alias | name   | surname       |

+-------+--------+---------------+

| Admin | Zabbix | Administrator |

| guest |        |               |

+-------+--------+---------------+

 

2 rows in set (0.00 sec)


B.節點宕機

[root@db02 ~]# mysql -uroot -p -e "SHOW STATUS LIKE 'wsrep_local_state_comment'"

Enter password: 

+---------------------------+--------+

| Variable_name             | Value  |

+---------------------------+--------+

| wsrep_local_state_comment | Synced |

+---------------------------+--------+

[root@db02 ~]# service mysql stop

Shutting down MySQL..... SUCCESS! 

[root@db00 ~]# mysql -uroot -p -e "SHOW STATUS LIKE 'wsrep_local_state_comment'"

Enter password: 

+---------------------------+--------+

| Variable_name             | Value  |

+---------------------------+--------+

| wsrep_local_state_comment | Synced |

+---------------------------+--------+

當節點恢復後,會自動加入到集羣,很是方便


四.關閉/啓動整個集羣

A.關閉

在全部集羣節點上執行service mysql stop便可

注意:最後關閉的節點很是重要,由於它維護着集羣最新的狀態,因此在啓動的時候必須最早啓動,不然,在啓動其它節點的會因找不到初始節點而報鏈接超時的錯誤

160415  1:20:26 [Warning] WSREP: (2dbcde95, 'tcp://0.0.0.0:4567') address 'tcp://192.168.8.102:4567' points to own listening address, blacklisting

160415  1:20:29 [Warning] WSREP: no nodes coming from prim view, prim not possible

160415  1:20:29 [Note] WSREP: view(view_id(NON_PRIM,2dbcde95,1) memb {

        2dbcde95,0

} joined {

} left {

} partitioned {

})

160415  1:20:29 [Warning] WSREP: last inactive check more than PT1.5S ago (PT3.50635S), skipping check

160415  1:20:59 [Note] WSREP: view((empty))

160415  1:20:59 [ERROR] WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 (Connection timed out)

         at gcomm/src/pc.cpp:connect():162

160415  1:20:59 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)

160415  1:20:59 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1379: Failed to open channel 'test_cluster' at 'gcomm://192.168.8.100,192.168.8.101,192.168.8.102': -110 (Connection timed out)

160415  1:20:59 [ERROR] WSREP: gcs connect failed: Connection timed out

160415  1:20:59 [ERROR] WSREP: wsrep::connect(gcomm://192.168.8.100,192.168.8.101,192.168.8.102) failed: 7

160415  1:20:59 [ERROR] Aborting

160415  1:20:59 [Note] WSREP: Service disconnected.

160415  1:21:00 [Note] WSREP: Some threads may fail to exit.

160415  1:21:00 [Note] /opt/mariadb/bin/mysqld: Shutdown complete

160415 01:21:00 mysqld_safe mysqld from pid file /opt/mariadb/mysqld.pid ended


B.啓動

最早啓動最後關閉的mysql節點,實測,仍然沒法啓動集羣

若是忘記了哪一個最後關閉的,能夠經過集羣初始化的節點重啓初始化下,如:

[root@db00 ~]# /etc/init.d/mysql start --wsrep-new-cluster

Starting MySQL.. SUCCESS! 

[root@db00 ~]# mysql -uroot -p -e "SHOW STATUS LIKE 'wsrep_local_state_comment'"

Enter password: 

+---------------------------+--------+

| Variable_name             | Value  |

+---------------------------+--------+

| wsrep_local_state_comment | Synced |

+---------------------------+--------+

[root@db01 ~]# service mysql start

Starting MySQL... SUCCESS! 

[root@db02 ~]# service mysql start

Starting MySQL... SUCCESS!


五.Galera監控

示例腳本/opt/mariadb/support-files/wsrep_notify 


查看MySQL版本: SHOW GLOBAL VARIABLES LIKE 'version';
查看wsrep版本: SHOW GLOBAL STATUS LIKE 'wsrep_provider_version';
查看wsrep有關的全部變量: SHOW VARIABLES LIKE 'wsrep%' \G
查看Galera集羣狀態: SHOW STATUS LIKE 'wsrep%';

監控狀態參數說明

集羣完整性檢查:
wsrep_cluster_state_uuid:在集羣全部節點的值應該是相同的,有不一樣值的節點,說明其沒有鏈接入集羣
wsrep_cluster_conf_id:正常狀況下全部節點上該值是同樣的。若是值不一樣,說明該節點被臨時"分區"了。當節點之間網絡鏈接恢復的時候應該會恢復同樣的值
wsrep_cluster_size:若是這個值跟預期的節點數一致,則全部的集羣節點已經鏈接。
wsrep_cluster_status:集羣組成的狀態。若是不爲"Primary",說明出現"分區"或是"split-brain"情況

節點狀態檢查:
wsrep_ready:該值爲ON,則說明能夠接受SQL負載。若是爲Off,則須要檢查wsrep_connected
wsrep_connected: 若是該值爲Off,且wsrep_ready的值也爲Off,則說明該節點沒有鏈接到集
羣。(多是wsrep_cluster_address或wsrep_cluster_name等配置錯形成的。具體錯誤須要
查看錯誤日誌)
wsrep_local_state_comment:若是wsrep_connected爲On,但wsrep_ready爲OFF,則能夠從該項查看緣由

複製健康檢查:
wsrep_flow_control_paused:表示複製中止了多長時間。即代表集羣由於Slave延遲而慢的程度。值爲0~1,越靠近0越好,值爲1表示複製徹底中止。可優化wsrep_slave_threads的值來改善
wsrep_cert_deps_distance:有多少事務能夠並行應用處理。wsrep_slave_threads設置的值不該高出該值太多。
wsrep_flow_control_sent:表示該節點已經中止複製了多少次
wsrep_local_recv_queue_avg:表示slave事務隊列的平均長度。slave瓶頸的預兆。最慢的節點的
wsrep_flow_control_sent和wsrep_local_recv_queue_avg這兩個值最高。這兩個值較低的話,相對更好

檢測慢網絡問題:
wsrep_local_send_queue_avg:網絡瓶頸的預兆。若是這個值比較高的話,可能存在網絡瓶衝突或死鎖的數目
wsrep_last_committed:最後提交的事務數目
wsrep_local_cert_failures和wsrep_local_bf_aborts:回滾,檢測到的衝突數目

相關文章
相關標籤/搜索