Merge lp:~hrvojem/percona-xtradb-cluster/wsrep-status-index into lp:~percona-dev/percona-xtradb-cluster/5.5.28

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: no longer in the source branch.
Merge reported by: Hrvoje Matijakovic
Merged at revision: not available
Proposed branch: lp:~hrvojem/percona-xtradb-cluster/wsrep-status-index
Merge into: lp:~percona-dev/percona-xtradb-cluster/5.5.28
Diff against target: 247 lines (+194/-2)
3 files modified
doc-pxc/source/glossary.rst (+23/-2)
doc-pxc/source/index.rst (+1/-0)
doc-pxc/source/wsrep-status-index.rst (+170/-0)
To merge this branch: bzr merge lp:~hrvojem/percona-xtradb-cluster/wsrep-status-index
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Frederic Descamps Pending
Peter Boros Pending
Jay Janssen Pending
Percona developers Pending
Review via email: mp+145130@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc-pxc/source/glossary.rst'
2--- doc-pxc/source/glossary.rst 2012-06-27 10:05:05 +0000
3+++ doc-pxc/source/glossary.rst 2013-01-28 09:07:40 +0000
4@@ -22,6 +22,9 @@
5 SST
6 State Snapshot Transfer is the full copy of data from one node to another. It's used when a new node joins the cluster, it has to transfer data from existing node. There are three methods of SST available in Percona XtraDB Cluster: :program:`mysqldump`, :program:`rsync` and :program:`xtrabackup` (Percona |XtraBackup| with support of XtraDB Cluster will be released soon, currently you need to use our `source code repository <http://www.percona.com/doc/percona-xtrabackup/installation/compiling_xtrabackup.html>`_). The downside of `mysqldump` and `rsync` is that your cluster becomes *READ-ONLY* while data is being copied from one node to another (SST applies :command:`FLUSH TABLES WITH READ LOCK` command). Xtrabackup SST does not require :command:`READ LOCK` for the entire syncing process, only for syncing |.FRM| files (the same as with regular backup).
7
8+ UUID
9+ universally unique identifier which uniquely identifies the state and the sequence of changes node undergoes.
10+
11 XtraBackup
12 *Percona XtraBackup* is an open-source hot backup utility for |MySQL| - based servers that doesn’t lock your database during the backup.
13
14@@ -37,15 +40,33 @@
15 my.cnf
16 This file refers to the database server's main configuration file. Most Linux distributions place it as :file:`/etc/mysql/my.cnf`, but the location and name depends on the particular installation. Note that this is not the only way of configuring the server, some systems does not have one even and rely on the command options to start the server and its defaults values.
17
18+ cluster replication
19+ Normal replication path for cluster members. Can be encrypted (not by default) and unicast or multicast (unicast by default). Runs on tcp port 4567 by default.
20+
21 datadir
22 The directory in which the database server stores its databases. Most Linux distribution use :file:`/var/lib/mysql` by default.
23
24+ donor node
25+ The node elected to provide a state transfer (SST or IST).
26+
27 ibdata
28 Default prefix for tablespace files, e.g. :file:`ibdata1` is a 10MB autoextendable file that |MySQL| creates for the shared tablespace by default.
29
30 innodb_file_per_table
31 InnoDB option to use separate .ibd files for each table.
32
33+ joiner node
34+ The node joining the cluster, usually a state transfer target.
35+
36+ node
37+ A cluster node -- a single mysql instance that is in the cluster.
38+
39+ primary cluster
40+ A cluster with :term:`quorum`. A non-primary cluster will not allow any operations and will give ``Unknown command`` errors on any clients attempting to read or write from the database.
41+
42+ quorum
43+ A majority (> 50%) of nodes. In the event of a network partition, only the cluster partition that retains a quorum (if any) will remain Primary by default.
44+
45 split brain
46 Split brain occurs when two parts of a computer cluster are disconnected, each part believing that the other is no longer running. This problem can lead to data inconsistency.
47
48@@ -65,10 +86,10 @@
49 Each table using the :program:`MERGE` storage engine, besides of a :term:`.frm` file, will have :term:`.MRG` file containing the names of the |MyISAM| tables associated with it.
50
51 .TRG
52- File containing the triggers associated to a table, e.g. `:file:`mytable.TRG`. With the :term:`.TRN` file, they represent all the trigger definitions.
53+ File containing the triggers associated to a table, e.g. :file:`mytable.TRG`. With the :term:`.TRN` file, they represent all the trigger definitions.
54
55 .TRN
56- File containing the triggers' Names associated to a table, e.g. `:file:`mytable.TRN`. With the :term:`.TRG` file, they represent all the trigger definitions.
57+ File containing the triggers' Names associated to a table, e.g. :file:`mytable.TRN`. With the :term:`.TRG` file, they represent all the trigger definitions.
58
59 .ARM
60 Each table with the :program:`Archive Storage Engine` has ``.ARM`` file which contains the metadata of it.
61
62=== modified file 'doc-pxc/source/index.rst'
63--- doc-pxc/source/index.rst 2012-06-27 10:05:05 +0000
64+++ doc-pxc/source/index.rst 2013-01-28 09:07:40 +0000
65@@ -106,6 +106,7 @@
66 :glob:
67
68 release-notes/release-notes_index
69+ wsrep-status-index
70 bugreport
71 glossary
72
73
74=== added file 'doc-pxc/source/wsrep-status-index.rst'
75--- doc-pxc/source/wsrep-status-index.rst 1970-01-01 00:00:00 +0000
76+++ doc-pxc/source/wsrep-status-index.rst 2013-01-28 09:07:40 +0000
77@@ -0,0 +1,170 @@
78+.. _wsrep_status_index:
79+
80+=================================
81+ Index of wsrep status variables
82+=================================
83+
84+.. variable:: wsrep_local_state_uuid
85+
86+This variable contains :term:`UUID` state stored on the node.
87+
88+.. variable:: wsrep_protocol_version
89+
90+Version of the wsrep protocol used.
91+
92+.. variable:: wsrep_last_committed
93+
94+Sequence number of the last committed transaction.
95+
96+.. variable:: wsrep_replicated
97+
98+Total number of writesets sent to other nodes.
99+
100+.. variable:: wsrep_replicated_bytes
101+
102+Total size (in bytes) of writesets sent to other nodes.
103+
104+.. variable:: wsrep_received
105+
106+Total number of writesets received from other nodes.
107+
108+.. variable:: wsrep_received_bytes
109+
110+Total size (in bytes) of writesets received from other nodes.
111+
112+.. variable:: wsrep_local_commits
113+
114+Number of writesets commited on the node.
115+
116+.. variable:: wsrep_local_cert_failures
117+
118+Number of writesets that failed the certification test.
119+
120+.. variable:: wsrep_local_bf_aborts
121+
122+Number of local transactions that were aborted by slave transactions while being executed.
123+
124+.. variable:: wsrep_local_replays
125+
126+Number of transaction replays due to "asymmetric lock granularity".
127+
128+.. variable:: wsrep_local_send_queue
129+
130+Current length of the send queue. Show the number of writesets waiting to be sent.
131+
132+.. variable:: wsrep_local_send_queue_avg
133+
134+Average length of the send queue since the last status query. When cluster experiences network throughput issues or replication throttling this value will be significantly bigger than ``0``.
135+
136+.. variable:: wsrep_local_recv_queue
137+
138+Current length of the receive queue. Show the number of writesets waiting to be applied.
139+
140+.. variable:: wsrep_local_recv_queue_avg
141+
142+Average length of the receive queue since the last status query. When this number is bigger than ``0`` this means node can't apply writesets as fast as they're received. This could be sign that node is overloaded and it will cause the replication throttling.
143+
144+.. variable:: wsrep_flow_control_paused
145+
146+Time since the last status query that replication was paused due to flow control.
147+
148+.. variable:: wsrep_flow_control_sent
149+
150+Number of ``FC_PAUSE`` events sent since the last status query.
151+
152+.. variable:: wsrep_flow_control_recv
153+
154+Number of ``FC_PAUSE`` events sent and received since the last status query.
155+
156+.. variable:: wsrep_cert_deps_distance
157+
158+Average distance between highest and lowest sequence numbet that can be possibly applied in parallel.
159+
160+.. variable:: wsrep_apply_oooe
161+
162+This variable shows parallelization efficiency, how often writests have been applied out-of-order.
163+
164+.. variable:: wsrep_apply_oool
165+
166+This variable shows how often was writeset with higher sequence number applied before the one with lower sequence number.
167+
168+.. variable:: wsrep_apply_window
169+
170+Average distance between highest and lowest concurrently applied sequence number.
171+
172+.. variable:: wsrep_commit_oooe
173+
174+This variable shows how often a transaction has been applied out of order.
175+
176+.. variable:: wsrep_commit_oool
177+
178+This variable currently isn't being used.
179+
180+.. variable:: wsrep_commit_window
181+
182+Average distance between highest and lowest concurrently committed sequence number.
183+
184+.. variable:: wsrep_local_state
185+
186+This variable shows internal Galera state number. Possible values are:
187+ * 1 - Joining (requesting/receiving State Transfer) - node is joining the cluster
188+ * 2 - Donor/Desynced - node is the donor to the node joining the cluster
189+ * 3 - Joined - node has joined the cluster
190+ * 4 - Synced - node is synced with the cluster
191+
192+.. variable:: wsrep_local_state_comment
193+
194+Description of the :variable:`wsrep_local_state` variable.
195+
196+.. variable:: wsrep_cert_index_size
197+
198+.. variable:: wsrep_causal_reads
199+
200+Shows the number of writesets processed while the variable :variable:`wsrep_causal_reads` was set to ``ON``.
201+
202+.. variable:: wsrep_incoming_addresses
203+
204+Shows the comma-separated list of incoming node addresses in the cluster.
205+
206+.. variable:: wsrep_cluster_conf_id
207+
208+Number of cluster membership changes happened.
209+
210+.. variable:: wsrep_cluster_size
211+
212+Current number of nodes in the cluster.
213+
214+.. variable:: wsrep_cluster_state_uuid
215+
216+This variable contains :term:`UUID` state of the cluster. When this value is the same as the one in :variable:`wsrep_local_state_uuid` node is synced with the cluster.
217+
218+.. variable:: wsrep_cluster_status
219+
220+Status of the cluster component. Possible values are:
221+ * ``Primary`` -
222+ * ``Non-Primary`` -
223+ * ``Disconnected`` -
224+
225+.. variable:: wsrep_connected
226+
227+.. variable:: wsrep_local_index
228+
229+Node index in the cluster
230+
231+.. variable:: wsrep_provider_name
232+
233+Name of the wsrep provider (usually ``Galera``).
234+
235+.. variable:: wsrep_provider_vendor
236+
237+Name of the wsrep provider vendor (usually ``Codership Oy``)
238+
239+.. variable:: wsrep_provider_version
240+
241+Current version of the wsrep provider.
242+
243+.. variable:: wsrep_ready
244+
245+This variable shows if node is ready to accept queries. If status is ``OFF`` almost all the queries will fail with ``ERROR 1047 (08S01) Unknown Command`` error (unless :variable:`wsrep_on` variable is set to ``0``)
246+
247+

Subscribers

People subscribed via source and target branches