經各種折騰,重要把MariaDB+Galera集群搭建起來,可是實際運行過程中發現有失敗的現象,一個節點操作成功,另外兩個節點並沒有同步成功,度娘了一會也沒發現解決辦法。只能從頭來學習下這個插件,看看有沒有思路。
先從核心參數了解下:
1、wsrep_apply_oooe,下面是官網解釋:
Description: How often writesets have been applied out of order, an indicators of parallelization efficiency.
大概翻譯后是這個意思:寫入集的有序應用頻率,是並行化效率的指標。查詢了實際環境中的默認值是 0
2、wsrep_apply_oool,官網解釋:
Description: How often writesets with a higher sequence number were applied before ones with a lower sequence number, implying slow writesets.
大概翻譯后是這個意思:在序列號較低的寫入集之前應用具有較高序列號的寫入集的頻率,這意味着寫入集速度較慢。查詢了實際環境中的默認值是 0
3、wsrep_apply_window,官網解釋:
Description: Average distance between highest and lowest concurrently applied seqno.
大概翻譯后是這個意思:最高和最低並發應用 seqno 之間的平均距離。查詢了實際環境中的默認值是 1
4、wsrep_cert_deps_distance,官網解釋:
Description: Average distance between the highest and the lowest sequence numbers that can possibly be applied in parallel, or the potential
degree of parallelization.
大概翻譯后是這個意思:可能並行應用的最高和最低序列號之間的平均距離,或潛在的並行化程度。查詢了實際環境中的默認值是 1
5、wsrep_cert_index_size,官網解釋:
Description: The number of entries in the certification index.
大概翻譯后是這個意思:認證索引中的條目數。查詢了實際環境中的默認值是 9
6、wsrep_cert_interval
,官網解釋:
Description: Average number of transactions received while a transaction replicates
大概翻譯后是這個意思:事務復制時收到的事務的平均數量。查詢了實際環境中的默認值是 0
7、wsrep_cluster_capabilities
,官網解釋:
Description:
大概翻譯后是這個意思:集群能力。查詢了實際環境中的默認值是 空(不是null,而是沒有任何值)
8、wsrep_cluster_conf_id
,官網解釋:
Description: Total number of cluster membership changes that have taken place.
大概翻譯后是這個意思:已發生的群集成員身份更改總數。查詢了實際環境中的默認值是 18446744073709551615
9、wsrep_cluster_size
,官網解釋:
Description: Number of nodes currently in the cluster.
大概翻譯后是這個意思:在當前集群中有節點的數量,實際理解就是加入的服務器數量。查詢了實際環境中的默認值是 3(因為我部署了三台),此值實際經驗是要大於等於3且數值最好是奇數,偶數容易產生腦裂現象。
10、wsrep_cluster_state_uuid
,官網解釋:
Description: UUID state of the cluster. If it matches the value in wsrep_local_state_uuid, the local and cluster nodes are in sync.
大概翻譯后是這個意思:群集的 UUID 狀態。如果它與值wsrep_local_state_uuid匹配,則本地節點和群集節點將同步。此值是第一次啟動后生成的GUID值。
今天先學習到。